@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #9c8e78; /* Soft warm neutral */
    --accent-color: #333333;
    --text-color: #222222;
    --text-muted: #888888;
    --bg-color: #ffffff;
    --bg-alt: #fdfdfd; /* Milky/soft background */
    --bg-light-gray: #f5f5f5;
    --border-color: #e5e5e5;
    --container-width: 1400px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.08);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.text-muted { color: var(--text-muted); }
.ls-1 { letter-spacing: 1px; }
.ls-2 { letter-spacing: 2px; }

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    transition: var(--transition);
}

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

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    flex-shrink: 0;
    color: #000000;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin: 0 auto; /* Center navigation */
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #000000;
    transition: var(--transition);
}

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

.nav-links .accent-link {
    color: #000000;
    font-weight: 600;
}
.nav-links .accent-link::after {
    background-color: #000000;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-btn:hover {
    color: #000000;
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.cart-icon, .favorites-icon {
    position: relative;
}

.cart-count, .favorites-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--bg-light-gray);
    color: var(--primary-color);
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 500;
    border: 1px solid var(--border-color);
}
.cart-count.hidden-badge, .favorites-count.hidden-badge {
    display: none;
}

/* Main content */
main {
    min-height: calc(100vh - 350px);
}

/* Product Listing Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem 2rem;
    margin-top: 3rem;
}

/* Premium Product Card */
.product-card {
    background: var(--bg-alt);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 1.5rem;
    border: 1px solid transparent;
}

.product-card:hover {
    background: var(--bg-color);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-color);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 120%; /* Ratio 5:6 */
    background: var(--bg-light-gray);
    margin-bottom: 1.5rem;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-info {
    padding: 0 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.product-volume {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Slide Up Add to Cart */
.card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    opacity: 0;
    transition: var(--transition);
    background: rgba(255,255,255,0.95);
    padding: 1.2rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    z-index: 10;
}

.product-card:hover .card-actions {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
footer {
    background: var(--bg-light-gray);
    color: var(--primary-color);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand .logo {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4, .footer-newsletter h4 {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid var(--primary-color);
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 0;
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    padding: 0.8rem 1rem;
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.newsletter-form button:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Forms & Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    width: 100%;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Empty state styling */
.empty-state {
    max-width: 500px;
    margin: 0 auto;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state .btn {
    width: auto;
    min-width: 250px;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--secondary-color);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Premium Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 2rem;
}
.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.search-overlay-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}
.search-overlay-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--secondary-color);
}
.search-overlay-close svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}
.search-overlay-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}
.search-overlay-content h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 3rem;
    text-transform: uppercase;
}
.search-overlay-form {
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
    transition: border-color 0.4s ease;
}
.search-overlay-form:focus-within {
    border-color: var(--secondary-color);
}
.search-overlay-form input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    padding: 0.5rem 0;
}
.search-overlay-form input:focus {
    outline: none;
}
.search-overlay-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.search-overlay-form button {
    display: none; /* Just hit Enter */
}
.search-overlay-hints {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Premium Toast Notification System */
.toast-container {
    position: fixed;
    top: 6rem; /* Position below header */
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}
.premium-toast {
    background: #1a1a1a;
    border: 1px solid #9c8e78; /* Soft warm neutral gold border */
    color: #ffffff;
    width: 380px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: auto;
    animation: toastSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    position: relative;
    overflow: hidden;
}
.premium-toast.hide {
    animation: toastSlideOut 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}
@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
.premium-toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.premium-toast-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
}
.premium-toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.premium-toast-close:hover {
    color: #fff;
}
.premium-toast-close svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}
.premium-toast-body {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.4;
    color: #e5e5e5;
}
.premium-toast-body strong {
    font-weight: 500;
    color: #ffffff;
}
.premium-toast-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
.btn-toast-cart {
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    flex: 1;
    display: inline-block;
}
.btn-toast-cart:hover {
    background: transparent;
    color: var(--secondary-color);
}
.btn-toast-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    flex: 1;
}
.btn-toast-close:hover {
    border-color: #fff;
}
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--secondary-color);
    width: 100%;
    transform-origin: left;
    animation: toastProgress 5s linear forwards;
}
@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}
/* Header Action Highlight */
.cart-count-updated {
    animation: countPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes countPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
        background: var(--secondary-color);
        color: #fff;
        border-color: var(--secondary-color);
    }
    100% {
        transform: scale(1);
    }
}

/* Favorites / Wishlist Button Styling */
.card-wishlist {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.wishlist-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--primary-color);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: #fff;
    color: var(--secondary-color);
}

.wishlist-btn svg {
    width: 18px;
    height: 18px;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.wishlist-btn.favorited {
    background: #fff;
    color: var(--secondary-color);
}

.wishlist-btn.favorited svg {
    fill: var(--secondary-color);
    stroke: var(--secondary-color);
}

/* Wishlist Button on Detail Page */
.detail-actions-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 4rem;
}

.wishlist-detail-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.wishlist-detail-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.wishlist-detail-btn svg {
    width: 22px;
    height: 22px;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.wishlist-detail-btn.favorited {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: #fff;
}

.wishlist-detail-btn.favorited svg {
    fill: #fff;
    stroke: #fff;
}

.favorites-count-updated {
    animation: countPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Wishlist Button on Product Cards */
.wishlist-btn-card {
    background: #fff;
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    flex-shrink: 0;
}

.wishlist-btn-card:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.wishlist-btn-card svg {
    width: 18px;
    height: 18px;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.wishlist-btn-card.favorited {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: #fff;
}

.wishlist-btn-card.favorited svg {
    fill: #fff;
    stroke: #fff;
}

/* Premium Quantity Selector (Global & Cart) */
.quantity-wrapper {
    display: flex;
    border: 1px solid var(--border-color);
    align-items: center;
    width: 120px;
    height: 45px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: none;
    border: none;
    width: 35px;
    height: 100%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

.quantity-wrapper input.qty-input {
    width: 50px;
    height: 100%;
    text-align: center;
    border: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    -moz-appearance: textfield;
}

.quantity-wrapper input.qty-input::-webkit-outer-spin-button,
.quantity-wrapper input.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-wrapper input.qty-input:focus {
    outline: none;
}

/* Row remove animation for Cart / Favorites */
.cart-row-fadeout {
    opacity: 0 !important;
    transform: translateY(-20px) scale(0.95) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 2rem;
}
.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}
.mobile-menu-close svg {
    width: 32px;
    height: 32px;
}
.mobile-menu-close:hover {
    transform: rotate(90deg);
}
.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
}
.mobile-menu-logo {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: #000000;
    margin-bottom: 1rem;
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000000;
    transition: var(--transition);
}
.mobile-nav-links a:hover {
    color: var(--secondary-color);
}

/* Hide hamburger on desktop, show on mobile */
.mobile-menu-btn {
    display: none !important;
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* --- Outstanding Mobile Responsive Optimizations --- */

/* 1. Global Container Padding & Header Layout for Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 0.8rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .header-actions {
        gap: 0.75rem;
    }
    
    .header-actions .icon-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-newsletter form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-newsletter button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
}

/* 2. Premium 2-Column Product Grid on Mobile & Visible Card Actions */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        margin-top: 1.5rem;
    }
    
    .product-card {
        padding-bottom: 1rem;
    }
    
    .product-image-wrapper {
        margin-bottom: 0.8rem;
    }
    
    .product-info {
        padding: 0 0.75rem;
    }
    
    .product-name {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 0.95rem;
    }
    
    .product-volume {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    /* Make card actions visible by default on mobile instead of relying on hover */
    .card-actions {
        transform: translateY(0) !important;
        opacity: 1 !important;
        padding: 0.4rem !important;
        background: rgba(255, 255, 255, 0.9) !important;
        gap: 0.4rem !important;
    }
    
    .card-actions button.btn {
        font-size: 0.7rem !important;
        padding: 0.6rem 0.3rem !important;
    }
    
    .wishlist-btn-card {
        width: 32px !important;
        height: 32px !important;
    }
    
    .wishlist-btn-card svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    /* Hero section font sizes for small mobile screens */
    .hero-title {
        font-size: 1.8rem !important;
        letter-spacing: 3px !important;
    }
    
    .hero-subtitle-words {
        font-size: 1.1rem !important;
        letter-spacing: 6px !important;
    }
    
    .hero-btn {
        min-width: 100% !important;
        padding: 0.8rem 2rem !important;
        font-size: 1.1rem !important;
    }
}

/* 3. Exquisite Mobile Layout for Cart Page */
@media (max-width: 768px) {
    .cart-table th {
        display: none !important;
    }
    
    .cart-table tr {
        display: grid !important;
        grid-template-columns: 90px 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 0.8rem 1rem !important;
        padding: 1.5rem 0 !important;
        border-bottom: 1px solid var(--border-color) !important;
        position: relative;
    }
    
    .cart-table td {
        padding: 0 !important;
        border: none !important;
    }
    
    /* Image column span across all three rows on the left */
    .cart-table td:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 / span 3 !important;
        width: 90px !important;
    }
    
    /* Product details (Brand, name, volume) */
    .cart-table td:nth-child(2) {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding-right: 2rem !important; /* Make room for delete button */
    }
    
    /* Quantity input wrapper */
    .cart-table td:nth-child(3) {
        grid-column: 2 !important;
        grid-row: 2 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Price tag */
    .cart-table td:nth-child(4) {
        grid-column: 2 !important;
        grid-row: 3 !important;
        font-weight: 500 !important;
        font-size: 1.1rem !important;
    }
    
    /* Delete button in absolute position on top right of card */
    .cart-table td:nth-child(5) {
        position: absolute !important;
        top: 1.5rem !important;
        right: 0 !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
    
    .cart-summary {
        padding: 2rem 1.5rem !important;
    }
}

/* 4. Detail Page Mobile Layout Adjustments */
@media (max-width: 480px) {
    .product-title {
        font-size: 2rem !important;
    }
    
    .detail-actions-wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .detail-actions-wrapper form.add-to-cart-form {
        width: 100% !important;
        flex: none !important;
    }
    
    .wishlist-detail-btn {
        width: 100% !important;
        height: 47px !important;
    }
}

/* 5. Auth Pages Responsive Padding */
@media (max-width: 480px) {
    .auth-card {
        padding: 2.5rem 1.5rem !important;
    }
    
    .auth-title {
        font-size: 1.5rem !important;
    }
}

/* 6. Profile Order Cards on Mobile */
@media (max-width: 576px) {
    .order-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        padding: 1rem 1.5rem !important;
    }
    
    .order-body {
        padding: 1rem 1.5rem !important;
    }
    
    .order-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        padding: 1rem 1.5rem !important;
    }
    
    .order-total {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

/* 7. Hide desktop search/fav/profile in main header on mobile */
@media (max-width: 768px) {
    #search-trigger,
    #favorites-icon-btn,
    #profile-icon-btn {
        display: none !important;
    }
    
    .header-actions {
        gap: 1rem !important;
    }
}

/* 8. Mobile Menu Actions Drawer layout styling */
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1.5rem;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    align-items: center;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #000000;
    width: 100%;
    max-width: 250px;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.mobile-action-btn:hover {
    border-color: #000000;
}

.mobile-action-btn svg {
    width: 20px;
    height: 20px;
    color: #000000;
}

.mobile-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #000000;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

