/* ========================================
   ZION eShop - Styly (V2 styl)
   ======================================== */

/* Presale navigace link */
.presale-link {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 136, 255, 0.1));
    border-radius: 20px;
    margin: 0 5px;
    padding: 8px 15px !important;
    animation: presalePulseNav 2s ease-in-out infinite;
}

.presale-link:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 136, 255, 0.3));
}

.presale-badge-nav {
    font-size: 0.9em;
    margin-right: 3px;
}

@keyframes presalePulseNav {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.3); }
    50% { box-shadow: 0 0 15px rgba(0, 255, 136, 0.6); }
}

/* Loading & Error States - Rasta Theme */
.products-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #888;
    animation: fadeIn 0.3s ease-in;
    background: linear-gradient(135deg, rgba(228, 30, 43, 0.05), rgba(252, 209, 22, 0.05), rgba(7, 137, 48, 0.05));
    border-radius: 10px;
    margin: 20px 0;
}

.products-loading i {
    margin-right: 10px;
    color: var(--rasta-gold);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #888;
    background: rgba(26, 26, 26, 0.5);
    border: 2px solid var(--rasta-gold);
    border-radius: 10px;
    margin: 20px 0;
}

.no-products.error {
    color: var(--rasta-red);
    border-color: var(--rasta-red);
    background: rgba(228, 30, 43, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Shop Hero */
.shop-hero {
    width: 100%;
    margin: 0;
    max-width: none;
    text-align: center;
}

.shop-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 15px;
    background: linear-gradient(90deg, #6549d5, #e33fa1, #fb5343);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    font-weight: 700;
}

.shop-hero p {
    font-size: 1.1rem;
    color: #888;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Košík v navigaci */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    text-decoration: none;
}

/* ZION PILL pro košík v navigaci */
.cart-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 46px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 10% 0, rgba(255,255,255,0.18), transparent 55%),
        linear-gradient(135deg, rgba(8,15,30,0.98), rgba(4,10,22,0.95));
    border: 1px solid rgba(210, 255, 244, 0.6);
    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.65),
        0 0 18px rgba(42, 245, 152, 0.45);
    color: #e5fdf7;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.cart-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 0, rgba(42,245,152,0.22), transparent 65%);
    opacity: 1;
    pointer-events: none;
}

.cart-icon-wrapper i {
    font-size: 15px;
    /* čistý světelný glow, žádný tmavý podklad */
    filter: drop-shadow(0 0 6px rgba(210,255,244,0.95));
}

.cart-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #ffffff, #2af598);
    color: #041016;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 6px rgba(42,245,152,0.8),
        0 0 14px rgba(8,174,234,0.6);
    transform: translateY(-1px);
}

.cart-link:hover .cart-icon-wrapper {
    box-shadow:
        0 0 18px rgba(42,245,152,0.8),
        0 0 26px rgba(8,174,234,0.7);
    transform: translateY(-1px);
}

.cart-link:active .cart-icon-wrapper {
    transform: translateY(0);
    box-shadow:
        0 0 12px rgba(42,245,152,0.65),
        0 0 18px rgba(8,174,234,0.55);
}

.nav-link.active {
    color: #e33fa1 !important;
}

/* Filtry kategorií */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
    max-width: 900px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--rasta-gold, #fcd116) transparent;
}

.category-filter::-webkit-scrollbar {
    height: 6px;
}

.category-filter::-webkit-scrollbar-track {
    background: transparent;
}

.category-filter::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--rasta-red, #e41e2b), var(--rasta-gold, #fcd116), var(--rasta-green, #078930));
    border-radius: 999px;
}

.filter-btn {
    padding: 12px 24px;
    background: linear-gradient(120deg, rgba(198,40,40,0.92), rgba(253,216,83,0.92), rgba(46,125,50,0.92));
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #041016;
    border-radius: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(253, 216, 83, 0.35);
}

.filter-btn:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(198, 40, 40, 0.45),
        0 0 32px rgba(46, 125, 50, 0.45);
}

.filter-btn.active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow:
        0 0 35px rgba(198, 40, 40, 0.45),
        0 0 45px rgba(253, 216, 83, 0.4),
        0 0 35px rgba(46, 125, 50, 0.45);
}

/* Produktová mřížka */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Produktová karta */
.product-card {
    background: linear-gradient(145deg, #0d0d0d, #0a0a0a);
    border: 2px solid #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: left;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rasta-red, #ff4500), var(--rasta-gold, #fcd116), var(--rasta-green, #4caf50));
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(252, 209, 22, 0.3),
                0 0 0 2px rgba(252, 209, 22, 0.4);
    border-color: var(--rasta-gold, #fcd116);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #111, #0a0a0a);
}

.model-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(4, 16, 22, 0.85);
    border: 1px solid rgba(252, 209, 22, 0.6);
    font-size: 11px;
    font-weight: 600;
    color: var(--rasta-gold, #fcd116);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.model-tag i {
    font-size: 11px;
    color: var(--rasta-gold, #fcd116);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    background: linear-gradient(90deg, var(--rasta-green, #4caf50), var(--rasta-gold, #fcd116));
    color: #000;
    font-size: 10px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(252, 209, 22, 0.5);
}

.product-badge.sale {
    background: linear-gradient(90deg, var(--rasta-red, #ff4500), var(--rasta-gold, #fcd116));
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.5);
}

.product-info {
    padding: 20px;
    background: transparent;
}

.product-category {
    font-size: 11px;
    color: var(--rasta-gold, #fcd116) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    background: transparent;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(252, 209, 22, 0.3);
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--rasta-gold, #fcd116) !important;
    background: transparent;
    text-shadow: 0 0 8px rgba(252, 209, 22, 0.2);
}

.product-description {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: transparent;
    width: 100%;
    text-align: left;
}

.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.product-meta {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--rasta-gold, #fcd116);
    border: 1px solid rgba(252, 209, 22, 0.3);
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(252, 209, 22, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-meta i {
    font-size: 0.75rem;
    color: var(--rasta-gold, #fcd116);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding-top: 12px;
    border-top: 1px solid rgba(252, 209, 22, 0.2);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rasta-gold, #fcd116) !important;
    background: transparent;
    text-shadow: 0 0 10px rgba(252, 209, 22, 0.3);
}

.token-bonus {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--rasta-gold, #fcd116);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.token-bonus i {
    color: var(--rasta-gold, #fcd116);
    font-size: 0.95rem;
}

.token-bonus span {
    color: currentColor;
}

.product-price .old-price {
    font-size: 0.85rem;
    color: #555;
    text-decoration: line-through;
    margin-right: 10px;
    background: transparent;
    font-weight: 400;
}

.btn-add-cart {
    min-width: 52px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0 18px;
    background:
        radial-gradient(circle at 12% 0, rgba(255,255,255,0.45), transparent 55%),
        linear-gradient(120deg, #c62828, #fdd835, #2e7d32);
    color: #041016;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.55),
        0 0 26px rgba(253, 216, 83, 0.45);
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn-add-cart:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.6),
        0 0 36px rgba(198, 40, 40, 0.5),
        0 0 36px rgba(253, 216, 83, 0.5),
        0 0 36px rgba(46, 125, 50, 0.5);
}

.btn-add-cart:hover::before {
    width: 100px;
    height: 100px;
}

.btn-add-cart:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(198, 40, 40, 0.45),
        0 0 22px rgba(46, 125, 50, 0.45);
}

.btn-add-cart.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    filter: grayscale(0.2);
}

.btn-add-cart.disabled span {
    color: rgba(0, 0, 0, 0.6);
}

.btn-add-cart.disabled i {
    filter: none;
    color: rgba(0, 0, 0, 0.6);
}

.btn-add-cart i {
    font-size: 14px;
    position: relative;
    z-index: 1;
    background: transparent;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.75));
}

/* úplně bez tmavého podkladu pod ikonou – jen čistý glow, žádný vlastní background */
.btn-add-cart i::after {
    content: none;
}

.btn-add-cart span {
    background: transparent;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(145deg, #0f0f0f, #0a0a0a);
    border: 1px solid #222;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    z-index: 10;
    transition: all 0.3s;
    background: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #fff;
    background: rgba(227, 63, 161, 0.2);
    transform: rotate(90deg);
}


.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: transparent;
}

.modal-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: transparent;
}

.modal-image {
    background: linear-gradient(135deg, #111, #0a0a0a);
    position: relative;
}

.modal-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}

.modal-info {
    padding: 40px 35px;
    background: transparent;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-viewer {
    background: linear-gradient(135deg, #05080f, #070a13);
    border: 1px solid #1a1f2b;
    border-radius: 0 0 0 20px;
    padding: 18px;
    min-height: 240px;
    display: none;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.modal-viewer.visible {
    display: flex;
}

.modal-viewer canvas {
    width: 100%;
    height: 260px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), rgba(2,4,9,0.9));
}

.modal-viewer canvas.loading {
    opacity: 0.65;
    filter: grayscale(0.8);
}

.viewer-hint {
    font-size: 0.72rem;
    color: #88a1c4;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0;
    text-align: center;
}

.modal-capabilities {
    display: none;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.capability-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e5fdf7;
    backdrop-filter: blur(12px);
}

.capability-chip i {
    font-size: 12px;
}

.modal-category {
    font-size: 12px;
    color: #e33fa1;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    font-weight: 600;
}

.modal-info h2 {
    font-size: 1.8rem;
    margin: 12px 0 20px;
    background: transparent;
    text-align: left;
    line-height: 1.3;
}

.modal-info p {
    color: #777;
    line-height: 1.8;
    margin-bottom: 25px;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.modal-meta {
    display: none;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-meta span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #ddd;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modal-meta span i {
    color: var(--rasta-gold);
}

.modal-token-bonus {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rasta-gold, #fcd116);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.modal-token-bonus i {
    font-size: 1.1rem;
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #6549d5, #e33fa1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    background: transparent;
}

.qty-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(140deg, #c62828, #fdd835, #2e7d32);
    color: #041016;
    font-size: 20px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.qty-btn:hover {
    color: #fff;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(253, 216, 83, 0.45);
}

.quantity-selector input {
    width: 60px;
    height: 42px;
    text-align: center;
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background:
        radial-gradient(circle at 15% 0, rgba(255,255,255,0.35), transparent 60%),
        linear-gradient(120deg, #c62828, #fdd835, #2e7d32);
    color: #041016;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 36px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(253, 216, 83, 0.45);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.6s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.6),
        0 0 45px rgba(198, 40, 40, 0.5),
        0 0 45px rgba(46, 125, 50, 0.5);
}

.btn-primary:hover::before {
    left: 120%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Notifikace */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 28px;
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 1px solid #e33fa1;
    border-radius: 14px;
    color: #fff;
    z-index: 10001;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.notification::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #6549d5, #e33fa1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: #4caf50;
}

.notification.success::before {
    background: #4caf50;
}

.notification.error {
    border-color: #f44336;
}

.notification.error::before {
    content: '✕';
    background: #f44336;
}

/* Responzivita */
@media (max-width: 768px) {
    .shop-hero {
        padding: 40px 20px 30px;
    }
    
    .shop-hero h1 {
        font-size: 1.8rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-left {
        order: 2;
    }

    .modal-image img {
        min-height: 250px;
        border-radius: 20px 20px 0 0;
    }

    .modal-viewer {
        border-radius: 0 0 20px 20px;
    }

    .modal-info {
        padding: 25px 20px 30px;
        order: 1;
    }
    
    .modal-info h2 {
        font-size: 1.4rem;
    }
    
    .modal-price {
        font-size: 1.6rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }

    .category-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 11px;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
        transform: translateY(150%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .category-filter {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 16px 10px;
        gap: 10px;
    }

    .filter-btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 600px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        border-radius: 0;
        height: 100%;
        max-height: none;
    }

    .modal-info {
        padding: 20px 18px 28px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 200px;
    }
    
    .btn-primary {
        width: 100%;
        padding: 14px;
    }

    .quantity-selector {
        flex-wrap: wrap;
        gap: 10px;
    }

    .quantity-selector input {
        flex: 1;
        min-width: 120px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6549d5, #e33fa1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7a5fe0, #e85ab3);
}

/* === GLOBAL RESPONSIVE FIXES === */
img, video, canvas, iframe {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .products-grid,
    .shop-hero,
    .shop-section {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
}
