/* assets/css/style.css */
/* UnifiedTEK Premium E-Commerce Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary: #2e1065;      /* Deep Violet */
    --secondary: #f472b6;    /* Rose Quartz */
    --accent: #d97706;       /* Warm Gold */
    
    /* Premium Warm Light Theme Palette */
    --bg: #fdfbf7;           /* Warm Sand Cream */
    --card: rgba(255, 255, 255, 0.85);
    --text: #1e1b4b;         /* Deep Ink Indigo */
    --text-sub: #4b5563;
    --border: rgba(46, 16, 101, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Adjustments */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    background-image: radial-gradient(circle at 5% 10%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
                      radial-gradient(circle at 95% 90%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.serif-font {
    font-family: 'Playfair Display', serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Main Container Limit */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----------------------------------------------------
   NAVIGATION BAR
   ---------------------------------------------------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 1.4rem;
    padding: 5px;
    transition: var(--transition);
}

.cart-icon-btn:hover {
    color: var(--secondary);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--secondary), #ec4899);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1px solid var(--bg);
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 1.3rem;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 1.5rem;
}

/* ----------------------------------------------------
   HERO BANNER
   ---------------------------------------------------- */
.hero {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-sub);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 16px 36px;
    border-radius: 40px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(244, 114, 182, 0.35);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(244, 114, 182, 0.55);
}

.hero-image-container {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-bg {
    position: absolute;
    width: 80%;
    height: 80%;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    filter: blur(60px);
    border-radius: 50%;
    z-index: 1;
}

.hero-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ----------------------------------------------------
   CATEGORY GRIDS & SECTIONS
   ---------------------------------------------------- */
.section-title-wrapper {
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-sub);
    font-size: 1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.category-card {
    position: relative;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: var(--card);
    transition: var(--transition);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 5, 20, 0.9) 20%, rgba(9, 5, 20, 0.1) 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: white;
}

.category-card p {
    font-size: 0.9rem;
    color: #e2e8f0;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.category-card:hover img {
    transform: scale(1.08);
}

/* ----------------------------------------------------
   PRODUCT CATALOG & GRID
   ---------------------------------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.product-card-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--secondary), #ec4899);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.product-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-cat {
    font-size: 0.8rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-card-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

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

/* ----------------------------------------------------
   CATALOGUE FILTER PAGE
   ---------------------------------------------------- */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 50px 0;
}

.filter-sidebar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    color: var(--text);
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-link {
    font-size: 0.95rem;
    color: var(--text-sub);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-link:hover,
.filter-link.active {
    color: var(--secondary);
    padding-left: 5px;
}

.color-swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-swatch-filter {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    transition: var(--transition);
}

.color-swatch-filter:hover,
.color-swatch-filter.active {
    transform: scale(1.2);
    border-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.size-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-btn-filter {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.size-btn-filter:hover,
.size-btn-filter.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* ----------------------------------------------------
   PRODUCT DETAILS PAGE
   ---------------------------------------------------- */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px 0;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main-img-wrapper {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-info-column {
    display: flex;
    flex-direction: column;
}

.product-meta-cat {
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.product-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 25px;
}

.product-detail-desc {
    color: var(--text-sub);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.variant-selector-section {
    margin-bottom: 30px;
}

.variant-selector-title {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text-sub);
}

.color-swatches {
    display: flex;
    gap: 12px;
}

.color-swatch-option {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.color-swatch-option.active {
    transform: scale(1.1);
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(244, 114, 182, 0.4);
}

.color-swatch-option::after {
    content: attr(data-name);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    color: var(--text-sub);
}

.color-swatch-option:hover::after {
    opacity: 1;
    bottom: -25px;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.size-option-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.size-option-btn:hover,
.size-option-btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.qty-cart-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text);
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.qty-btn:hover {
    background: rgba(255,255,255,0.05);
}

.qty-input {
    background: none;
    border: none;
    color: var(--text);
    width: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-add-cart {
    flex-grow: 1;
    border-radius: 30px;
    font-size: 1.1rem;
}

/* Stock Status Badges */
.stock-status {
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}
.stock-status.in-stock { color: #10b981; }
.stock-status.low-stock { color: var(--accent); }
.stock-status.out-of-stock { color: #ef4444; }

/* ----------------------------------------------------
   SHOPPING CART VIEW
   ---------------------------------------------------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding: 50px 0;
}

.cart-table-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
}

.cart-header-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px 50px;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-sub);
}

.cart-item-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px 50px;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.cart-item-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cart-item-details p {
    font-size: 0.85rem;
    color: var(--secondary);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 20px;
    width: fit-content;
}

.cart-item-qty .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.cart-item-qty .qty-input {
    width: 30px;
    font-size: 0.95rem;
}

.cart-item-subtotal {
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.1);
}

.cart-summary-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    height: fit-content;
}

.summary-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem;
}

.summary-row.total {
    border-top: 1px solid var(--border);
    padding-top: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 20px;
}

.btn-checkout {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 25px;
}

/* Empty Cart State */
.empty-cart-state {
    text-align: center;
    padding: 60px 0;
}

.empty-cart-state h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.empty-cart-state p {
    color: var(--text-sub);
    margin-bottom: 30px;
}

/* ----------------------------------------------------
   CHECKOUT PAGE
   ---------------------------------------------------- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    padding: 50px 0;
}

.checkout-form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px;
}

.checkout-section-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-sub);
}

.form-control {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(244, 114, 182, 0.25);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ----------------------------------------------------
   ORDER SUCCESS SCREEN
   ---------------------------------------------------- */
.success-screen {
    text-align: center;
    max-width: 600px;
    margin: 80px auto;
    padding: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.success-screen h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.success-screen p {
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 30px;
}

.success-details {
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    margin-bottom: 30px;
}

.success-details div {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.success-details div:last-child {
    border-bottom: none;
}

.btn-whatsapp-order {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    margin-bottom: 20px;
}

.btn-whatsapp-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

/* ----------------------------------------------------
   FOOTER SECTION
   ---------------------------------------------------- */
footer {
    margin-top: auto;
    background: rgba(9, 5, 20, 0.95);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px 0;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ----------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   ---------------------------------------------------- */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 0;
    }
    
    .hero-content p {
        margin: 0 auto 35px auto;
    }
    
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0;
    }
    
    .product-gallery {
        position: static;
    }
    
    .gallery-main-img-wrapper {
        height: 360px; /* Responsive, compact height for mobile formats */
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        /* Toggle classes handled in JS for sliding menu if needed */
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Clear header overlap on user pages */
    .product-detail-layout,
    .shop-layout,
    .cart-layout,
    .checkout-layout {
        padding-top: 35px !important;
    }

    /* Prevent product gallery container from touching screen boundaries */
    .product-gallery {
        padding: 0 10px;
    }

    /* Cart responsive list layout */
    .cart-header-row {
        display: none !important;
    }

    .cart-item-row {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        gap: 12px;
        padding: 20px 15px !important;
        border-bottom: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.4);
        border-radius: 16px;
        margin-bottom: 15px;
    }

    .cart-item-img {
        width: 70px;
        height: 70px;
        border-radius: 10px;
    }

    .cart-item-details {
        width: 100%;
        padding-right: 30px; /* Space for trash icon */
    }

    .cart-item-qty {
        width: 120px !important;
        margin-top: 5px;
    }

    .cart-item-subtotal {
        font-size: 1.1rem;
        font-weight: 700;
        margin-top: 5px;
        color: var(--text);
    }

    .cart-item-remove {
        position: absolute;
        top: 20px;
        right: 15px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    /* Prevent main grid/cards clipping by enforcing a clean single-column structure */
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Stacking Price and buttons inside product cards on narrow viewport sizes */
    .product-card-price-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 15px;
    }

    .product-card-price-row .btn-primary,
    .product-card-price-row a.btn-primary {
        width: 100%;
        text-align: center;
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
    }

    .product-card-price {
        text-align: center;
        font-size: 1.2rem;
    }

    /* Prevent Sidebar Card and other Premium Cards from getting clipped */
    .cart-table-card,
    .cart-summary-card,
    .checkout-form-card,
    .filter-sidebar {
        padding: 20px !important;
        margin-left: 0;
        margin-right: 0;
    }

    /* Stacking side-by-side Hero Call-to-Actions */
    .hero-content > div {
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
    }

    .hero-content > div a {
        width: 100% !important;
        text-align: center;
    }

    /* Fix pincode checker squish & button clipping */
    #delivery-pincode-input {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Move floating WhatsApp widget into corner and make it less invasive */
    .floating-whatsapp {
        width: 48px;
        height: 48px;
        bottom: 15px;
        right: 15px;
        font-size: 1.5rem;
    }
}
