/* =============================================
   DESIGN TOKENS — identical to style.css
   ============================================= */
:root {
    --green-900: #1b4332;
    --green-800: #2d6a4f;
    --green-700: #40916c;
    --green-600: #52b788;
    --green-500: #74c69d;
    --green-400: #95d5b2;
    --green-300: #b7e4c7;
    --green-200: #d8f3dc;
    --green-100: #f0fdf4;

    --gray-900: #1a202c;
    --gray-700: #4a5568;
    --gray-500: #a0aec0;
    --gray-200: #edf2f7;
    --gray-100: #f7fafc;
    --gray-50:  #fcfdfd;

    --font-sans:    'Plus Jakarta Sans', sans-serif;
    --font-serif:   'Source Sans 3', serif;
    --font-display: 'Poppins', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-y: scroll; scrollbar-gutter: stable; }

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    background-color: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.5;
}

/* =============================================
   HEADER — identical to style.css / indexAfter
   ============================================= */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e9efec;
    z-index: 1000;
    padding: 0.5rem 0;
}

.container-H {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
    position: relative;
}

/* =============================================
   LOGO
   ============================================= */
.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.logo img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
}
.logo span {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--green-900);
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}
/* the span wrapping the img in html has no text, reset it */
.logo a span:has(img) {
    display: flex;
    align-items: center;
}

/* =============================================
   NAV PILL — identical to style.css
   ============================================= */
nav {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    padding: 0.26rem;
    border-radius: 999px;
    background: #f4f6f5;
    border: 1px solid #edf1ef;
    position: static;
    right: auto;
}
nav a {
    font-weight: 600;
    color: #2f3e36;
    text-decoration: none;
    font-size: 0.88rem;
    position: relative;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    transition: color .2s ease, background-color .2s ease;
    width: max-content;
    display: inline-block;
}
nav a:hover { color: var(--green-900); background: #e9f2ed; }
nav a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0.25rem;
    width: 6px; height: 2px;
    background: #5a9a78;
    border-radius: 2px;
    transform: translateX(-50%) scaleX(0);
    transition: transform .24s ease;
}
nav a:hover::after,
nav a.active::after { transform: translateX(-50%) scaleX(1); }
nav a.active { background: #dfeee5; color: var(--green-900); }

/* =============================================
   DROPDOWN — mirrors style.css / indexAfter
   ============================================= */
.dropdown { position: relative; display: inline-flex; align-items: center; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.62rem);
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    box-shadow: 0 12px 24px rgba(19,50,36,.12);
    border-radius: 0.8rem;
    min-width: 190px;
    z-index: 1001;
    padding: 0.45rem 0;
    border: 1px solid #e8efea;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color .2s ease;
    border-radius: 0;
    background: none;
    width: 100%;
}
.dropdown-menu a:hover { background-color: #edf4ef; color: var(--green-900); }
.dropdown-menu a::after { display: none !important; }
.dropdown-menu a i { margin-right: 0.75rem; font-size: 1rem; width: 20px; text-align: center; }
#scanPlant i.fa-chevron-down { margin-left: 0.3rem; font-size: 0.8rem; transition: transform .2s ease; }
.dropdown:hover #scanPlant i.fa-chevron-down { transform: rotate(180deg); }

/* =============================================
   USER / PROFILE ICON
   ============================================= */
.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--green-800);
    box-shadow: 0 4px 12px rgba(45,106,79,.25);
    cursor: pointer;
    flex-shrink: 0;
}
.user-icon a.profile {
    color: var(--green-200);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    border-radius: 50%;
    text-decoration: none;
}
.user-icon a.profile::after { display: none !important; }

/* =============================================
   PROFILE SUB-MENU
   ============================================= */
.sub-menu-wrap {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1.5rem;
    width: min(92vw, 300px);
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s ease;
    z-index: 1002;
    filter: none;
}
.sub-menu-wrap.open-menu { max-height: 420px; }

.sub-menu {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 1.1rem;
    box-shadow: 0 20px 44px rgba(17,66,23,.14);
    padding: 1.25rem;
    margin: 0.5rem 0;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.8rem;
}
.user-info img {
    width: 46px; height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-600), var(--green-900));
    padding: 2px;
    object-fit: cover;
}
.user-info h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-900);
    margin: 0;
}
.sub-menu hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 0.75rem 0;
}
.sub-menu-link {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.sub-menu-link a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    border-radius: 0.65rem;
    transition: background .2s ease, color .2s ease;
    justify-content: space-between;
    background: none;
    width: 100%;
}
.sub-menu-link a:hover { background-color: #edf4ef; color: var(--green-900); transform: none; }
.sub-menu-link a::after { display: none !important; }
.sub-menu-link a i.same {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--green-600), var(--green-900));
    color: var(--green-100);
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-right: 0;
    transition: none;
}
.sub-menu-link a:hover i.same { transform: none; }
.sub-menu-link a span {
    margin-left: auto;
    font-size: 1rem;
    color: var(--gray-500);
    font-weight: 400;
    visibility: visible;
    transition: none;
}
.sub-menu-link a:hover span { transform: none; color: var(--gray-500); }
.sub-menu-link-inner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

/* =============================================
   UPLOAD MODAL — matches style.css modal
   ============================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1010;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.6);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.modal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}
.close {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: color .2s ease;
}
.close:hover { color: var(--gray-900); }

#drop-area {
    border: 2px dashed var(--green-400);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--green-100);
    transition: all .2s ease;
    font-family: var(--font-sans);
    color: var(--green-800);
    font-size: 1.05rem;
    font-weight: 600;
    position: relative;
}
#drop-area:hover { background-color: var(--green-200); border-color: var(--green-600); }
#drop-area.dragover { background-color: var(--green-300); border-color: var(--green-700); }
#drop-area p { margin: 0.5rem 0; }
#fileInput { margin-top: 1rem; }

/* =============================================
   STORE MAIN CONTAINER
   ============================================= */
.store-container {
    padding-top: 72px;
    min-height: calc(100vh - 72px);
    background-color: var(--gray-50);
}

/* =============================================
   HERO SECTION — matches main hero aesthetic
   ============================================= */
.hero-section {
    background:
        linear-gradient(115deg, rgba(8,24,17,.72), rgba(19,53,39,.52)),
        url("../bgimg.jpg") center center / cover no-repeat;
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
}
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 8px 24px rgba(0,0,0,.32);
}
.hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,.88);
    margin: 0;
    font-weight: 500;
    text-shadow: 0 4px 16px rgba(0,0,0,.2);
}

/* =============================================
   STORE CONTENT WRAPPER
   ============================================= */
.store-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* =============================================
   SEARCH & FILTER BAR
   ============================================= */
.search-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}
.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--green-700);
    font-size: 1rem;
}
.search-box input {
    width: 100%;
    padding: 0.78rem 1rem 0.78rem 2.8rem;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    font-size: 0.92rem;
    font-family: var(--font-sans);
    background-color: #ffffff;
    color: var(--gray-900);
    transition: all .2s ease;
    box-shadow: var(--shadow-sm);
}
.search-box input:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(82,183,136,.2);
}
.search-box input::placeholder { color: var(--gray-500); }

.cart-icon-container { position: relative; }
.cart-btn {
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-900) 100%);
    color: white;
    border: none;
    padding: 0.78rem 1.35rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all .2s ease;
    box-shadow: 0 8px 20px rgba(27,67,50,.22);
}
.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(27,67,50,.28);
}
.cart-count {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 22px; height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* =============================================
   CATEGORIES
   ============================================= */
.categories-container { margin-bottom: 2rem; }
.categories {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}
.category-btn {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--gray-200);
    background-color: #ffffff;
    color: var(--gray-700);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    font-family: var(--font-sans);
    box-shadow: var(--shadow-sm);
}
.category-btn:hover {
    background: var(--green-100);
    border-color: var(--green-400);
    color: var(--green-900);
    transform: translateY(-1px);
}
.category-btn.active {
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-900) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(27,67,50,.22);
}

/* =============================================
   PRODUCTS SECTION
   ============================================= */
.products-section { margin-top: 1rem; }
.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 1.5rem;
    text-align: left;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* =============================================
   PRODUCT CARD — mirrors feature-card style
   ============================================= */
.product-card {
    background-color: #ffffff;
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-300);
}
.product-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--green-100) 0%, var(--green-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    padding: 1.25rem;
}
.product-info {
    padding: 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-category {
    font-size: 0.76rem;
    color: var(--green-700);
    font-weight: 700;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.product-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.product-description {
    font-size: 0.88rem;
    color: var(--gray-700);
    margin-bottom: 0.9rem;
    line-height: 1.5;
    flex: 1;
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 0.75rem;
}
.product-rating i { color: #f59e0b; font-size: 0.85rem; }
.product-rating span {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-left: 4px;
    font-weight: 600;
}
.product-price {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.product-price .current-price {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--green-900);
}
.product-price .original-price {
    font-size: 0.95rem;
    color: var(--gray-500);
    text-decoration: line-through;
}
.product-actions { display: flex; gap: 0.6rem; }

.btn-add-cart {
    flex: 1;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-900) 100%);
    color: white;
    border: none;
    border-radius: 0.65rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    font-family: var(--font-sans);
    box-shadow: 0 4px 12px rgba(27,67,50,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.btn-add-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(27,67,50,.24);
}

.btn-view-details {
    padding: 0.7rem 1rem;
    background-color: #ffffff;
    color: var(--green-900);
    border: 1px solid var(--green-300);
    border-radius: 0.65rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    font-family: var(--font-sans);
    white-space: nowrap;
}
.btn-view-details:hover {
    background: var(--green-100);
    border-color: var(--green-500);
}

/* =============================================
   PRODUCT DETAIL MODAL
   ============================================= */
.product-modal {
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.close-modal {
    position: absolute;
    top: 1rem; right: 1.25rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: color .2s ease;
}
.close-modal:hover { color: var(--green-900); }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.product-detail-image {
    font-size: 7rem;
    text-align: center;
    background: linear-gradient(135deg, var(--green-100) 0%, var(--green-200) 100%);
    border-radius: 1.1rem;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail-info h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--gray-900);
    margin: 0 0 0.5rem;
    font-weight: 700;
}
.product-detail-info .product-category { font-size: 0.82rem; margin-bottom: 0.75rem; }
.product-detail-info .product-description {
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    color: var(--gray-700);
}
.product-detail-info .product-rating { margin-bottom: 1.25rem; font-size: 1rem; }
.product-detail-info .product-price { margin-bottom: 1.5rem; }
.product-detail-info .product-price .current-price { font-size: 1.75rem; }
.product-detail-actions { display: flex; gap: 1rem; }
.product-detail-actions .btn-add-cart { flex: 1; padding: 0.9rem; font-size: 1rem; border-radius: 0.75rem; }

/* =============================================
   SHOPPING CART SIDEBAR
   ============================================= */
.cart-sidebar {
    position: fixed;
    top: 0; right: -420px;
    width: 420px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -8px 0 32px rgba(17,66,23,.12);
    z-index: 2000;
    transition: right .3s ease;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open { right: 0; }

.cart-header {
    background: linear-gradient(135deg, var(--green-700) 0%, var(--green-900) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}
.close-cart {
    background: rgba(255,255,255,.18);
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s ease;
}
.close-cart:hover { background: rgba(255,255,255,.3); }

.cart-items { flex: 1; overflow-y: auto; padding: 1.25rem; }

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0.75rem;
}
.cart-item-image {
    font-size: 2.5rem;
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--green-100) 0%, var(--green-200) 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; color: var(--gray-900); margin-bottom: 3px; font-size: 0.92rem; }
.cart-item-price { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 0.6rem; font-weight: 500; }
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
.quantity-btn {
    background: var(--green-100);
    border: 1px solid var(--green-300);
    color: var(--green-900);
    width: 28px; height: 28px;
    border-radius: 0.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all .2s ease;
}
.quantity-btn:hover { background: var(--green-800); color: white; border-color: var(--green-800); }
.quantity-value { font-weight: 700; min-width: 28px; text-align: center; color: var(--gray-900); }
.remove-item {
    background: none;
    color: #ef4444;
    border: 1px solid #fca5a5;
    padding: 3px 10px;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all .2s ease;
    font-family: var(--font-sans);
    margin-top: 2px;
}
.remove-item:hover { background: #ef4444; color: white; border-color: #ef4444; }

.cart-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}
.cart-total {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 1rem;
    text-align: center;
}
.checkout-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-900) 100%);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    font-family: var(--font-sans);
    box-shadow: 0 8px 20px rgba(27,67,50,.22);
}
.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(27,67,50,.28);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1999;
    display: none;
}
.cart-overlay.show { display: block; }

.empty-cart { text-align: center; padding: 3rem 1.25rem; color: var(--gray-500); }
.empty-cart i { font-size: 3.5rem; margin-bottom: 1rem; color: var(--gray-200); display: block; }
.empty-cart p { font-size: 1.05rem; margin: 0; font-weight: 500; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
    nav { display: none; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-section { padding: 3.5rem 1.25rem 2.5rem; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
    .search-filter-bar { flex-direction: column; }
    .search-box { width: 100%; }
    .cart-sidebar { width: 100%; right: -100%; }
    .product-modal { max-width: 95%; }
    .product-detail { grid-template-columns: 1fr; }
    .product-detail-image { font-size: 5rem; padding: 2rem; }
    .section-title { font-size: 1.4rem; text-align: center; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .product-actions { flex-direction: column; }
    .product-detail-actions { flex-direction: column; }
    .category-btn { font-size: 0.82rem; padding: 0.42rem 0.9rem; }
}