/* ==========================================
   OURGOODS Stylesheet - Premium Design System
   ========================================== */

/* Design Tokens & CSS Variables */
:root {
    /* Color Palette */
    --primary: #E43292;
    --primary-hover: #C11D73;
    --accent: #E43292;
    --accent-hover: #C11D73;
    --secondary: #919199;
    --dark: #1b1b28;
    --dark-light: #212129;
    --light: #f5f5f5;
    --white: #ffffff;
    --border-color: #dfdfe6;
    
    /* Fonts */
    --font-primary: 'Public Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Box Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 15px rgba(241, 122, 172, 0.35);
    
    /* Border Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-round: 50%;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.5;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, button, select {
    font-family: inherit;
    border: none;
    outline: none;
}

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

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.d-none { display: none !important; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.pt-4 { padding-top: 32px; }
.pb-4 { padding-bottom: 32px; }
.pb-5 { padding-bottom: 48px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 46, 4, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--dark);
    color: var(--dark);
}

.btn-outline:hover {
    background-color: var(--dark);
    color: var(--white);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Modals Overlay (Newsletter & Details) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-width: 90%;
    transform: translateY(-50px);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--secondary);
    background: none;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    color: var(--dark);
}

/* Newsletter Modal Specific */
.newsletter-card {
    width: 720px;
    overflow: hidden;
}

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

.newsletter-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsletter-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 12px;
}

.newsletter-content p {
    color: var(--secondary);
    margin-bottom: 24px;
}

.newsletter-content input[type="email"] {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    margin-bottom: 16px;
    background-color: var(--light);
}

/* Top Navbar */
.top-navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 13px;
    color: var(--secondary);
}

.top-link {
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.top-link i { font-size: 16px; }

.top-link:hover {
    color: var(--dark);
}

.social-icons a {
    color: var(--dark);
    font-size: 16px;
    margin-right: 12px;
}

.social-icons a:hover {
    color: var(--primary);
}

.helpline-text {
    margin-left: 12px;
    color: var(--secondary);
}
.helpline-text strong {
    color: var(--dark);
}

/* Main Header */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo {
    max-height: 40px;
}

.search-area {
    position: relative;
    width: 55%;
    gap: 12px;
}

.search-form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    flex-grow: 1;
    height: 48px;
    padding: 4px;
    background-color: var(--white);
}

.search-form:focus-within {
    border-color: #bbb;
}

.search-form input {
    flex-grow: 1;
    padding: 0 16px;
    font-size: 14px;
    background: transparent;
    border: none;
    outline: none;
    color: #333;
}

.search-form input::placeholder {
    color: #999;
}

.search-form button {
    background-color: #212121;
    color: var(--white);
    padding: 0 24px;
    font-size: 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    background-color: #000;
}

.image-search-btn {
    background-color: #f2f2f2;
    color: var(--dark);
    border: none;
    padding: 0 16px;
    height: 44px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    gap: 8px;
    cursor: pointer;
}

.image-search-btn i {
    font-size: 18px;
}

.image-search-btn:hover {
    background-color: #e2e2e2;
}

/* Search suggestions box */
.search-suggestions {
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    z-index: 50;
    padding: 16px;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestions-section h6 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

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

.search-tag {
    background-color: var(--light);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition-fast);
}

.search-tag:hover {
    background-color: var(--primary);
    color: var(--white);
}

.suggestions-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 12px 0;
}

.suggested-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--light);
    cursor: pointer;
}

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

.suggested-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-right: 12px;
}

.suggested-item .item-info h5 {
    font-size: 13px;
    font-weight: 500;
}

.suggested-item .item-info span {
    font-weight: 700;
    color: var(--accent);
    font-size: 12px;
}

/* User Account Area */
.account-actions {
    margin-left: 20px;
    order: 2;
}

.user-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--secondary);
    margin-right: 12px;
}

.account-links {
    font-size: 13px;
    color: var(--secondary);
}

.account-links a:hover {
    color: var(--primary);
}

.divider {
    margin: 0 4px;
}

/* Cart Trigger button */
.cart-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px;
    transition: var(--transition-fast);
    order: 1;
    margin-right: 16px;
}

.cart-icon-wrapper {
    position: relative;
    font-size: 28px;
    color: var(--dark);
    margin-right: 12px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: var(--radius-round);
    font-size: 10px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

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

.cart-label {
    font-size: 11px;
    color: var(--secondary);
}

.cart-value {
    font-weight: 700;
    font-size: 13px;
    color: var(--dark);
}

/* Nav Menubar */
.nav-menubar {
    background-color: #e56b9c;
    color: var(--white);
}

.nav-menubar .container {
    height: 50px;
}

.category-menu-wrapper {
    position: relative;
    height: 100%;
}

.category-trigger {
    background-color: #c95484;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    width: 270px;
}

.category-sidebar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 270px;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    z-index: 500;
    display: none;
}

.category-sidebar-dropdown.active {
    display: block;
}

.category-list li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--dark);
    border-bottom: 1px solid var(--light);
}

.category-list li a:hover {
    background-color: rgba(241, 122, 172, 0.08);
    color: var(--primary);
    padding-left: 26px;
}

.category-list li a img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-right: 12px;
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    margin-left: 20px;
    position: relative;
    height: 100%;
}

.nav-scroll-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 100%;
    transition: var(--transition-fast);
}

.nav-scroll-btn:hover {
    color: var(--light);
}

.nav-links {
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-width: 0;
    scroll-behavior: smooth;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    padding: 0 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 14px;
    white-space: nowrap;
    transition: var(--transition-fast);
    height: 100%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 25%;
    right: 25%;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero-grid-section .grid-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: stretch;
}

/* Category Sidebar */
.category-sidebar {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    height: 420px; /* Match slider height */
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

/* Custom Scrollbar for Sidebar */
.category-sidebar::-webkit-scrollbar {
    width: 6px;
}
.category-sidebar::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 10px;
}
.category-sidebar:hover::-webkit-scrollbar-thumb {
    background-color: #bbb;
}

.category-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.category-list-item:hover {
    background-color: var(--light);
    color: var(--primary);
}

.category-list-item .cat-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-list-item .cat-name i {
    font-size: 20px;
    color: var(--secondary);
}

.category-list-item:hover .cat-name i {
    color: var(--primary);
}

.category-list-item .la-angle-right {
    font-size: 14px;
    color: #999;
}

/* Mega Menu Panel */
.mega-menu-panel {
    position: absolute;
    top: 0;
    left: 100%;
    width: 600px; /* Adjust based on preference */
    height: 100%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    z-index: 100;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.2s ease-in-out;
    overflow-y: auto;
}

.sidebar-wrapper:hover .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mega-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
}

.mega-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    gap: 8px;
    transition: var(--transition-fast);
}

.mega-menu-item:hover {
    color: var(--primary);
}

.mega-menu-item .img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.mega-menu-item:hover .img-wrapper {
    border-color: var(--primary);
}

.mega-menu-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-menu-item span {
    font-size: 13px;
    line-height: 1.2;
}

/* Slider */
.carousel-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 420px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-round);
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--primary);
    width: 24px;
    border-radius: 10px;
}

/* Card Panels */
.card-panel {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.panel-header {
    margin-bottom: 16px;
    border-bottom: 1.5px solid var(--light);
    padding-bottom: 10px;
}

.panel-header h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.fire-icon {
    color: var(--accent);
    font-size: 18px;
    margin-right: 8px;
}

.categories-horizontal-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 8px;
}

.categories-horizontal-grid::-webkit-scrollbar {
    height: 4px;
}

.categories-horizontal-grid::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

.hot-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80px;
    flex-shrink: 0;
}

.cat-circle-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-round);
    overflow: hidden;
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.hot-cat-item:hover .cat-circle-img {
    border-color: var(--primary);
    transform: scale(1.08);
}

.cat-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-cat-item span {
    font-size: 11px;
    color: var(--dark);
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
}

.btn-view-all {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* Mini Featured list */
.mini-featured-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-product-item {
    display: flex;
    align-items: center;
}

.mini-product-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-right: 16px;
    border: 1px solid var(--light);
}

.mini-product-info h5 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 220px;
}

.mini-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-price-current {
    font-weight: 700;
    color: var(--dark);
}

.mini-price-old {
    font-size: 11px;
    color: var(--secondary);
    text-decoration: line-through;
}

/* Tabs & Product Grid */
.filter-tab-bar {
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 12px;
}

.tab-btn {
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--white);
    color: var(--secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    border-color: var(--dark);
    color: var(--dark);
}

.tab-btn.active {
    background-color: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Product Card */
.product-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid #efefef;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #e2e2e2;
}

.badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
}

.product-card-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    cursor: pointer;
}

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

.hover-image {
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.product-card-hover-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 12px;
    display: flex;
    justify-content: center;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    transition: var(--transition-smooth);
}

.product-card:hover .product-card-hover-actions {
    bottom: 0;
}

.btn-select-options {
    background-color: var(--white);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-select-options:hover {
    background-color: var(--primary);
    color: var(--white);
}

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


.product-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.product-card-title:hover {
    color: var(--primary);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-current {
    font-size: 17px;
    font-weight: 800;
    color: #111;
}

.price-old {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-card-delivery {
    font-size: 8.5px;
    color: #0088ff;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    font-size: 12px;
    letter-spacing: -0.2px;
    color: #999;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.verified-badge-custom {
    background-color: rgba(228, 50, 146, 0.08);
    padding: 1.5px 5px;
    border-radius: 8px;
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-primary);
    box-shadow: none;
}

.verified-badge-custom .v-check {
    color: var(--primary);
    font-weight: 900;
    font-size: 9.5px;
    font-style: italic;
    transform: scaleX(1.2);
    margin-right: 1px;
}

.verified-badge-custom .v-text {
    color: #111;
    font-weight: 800;
    font-size: 7px;
    letter-spacing: -0.2px;
}

.meta-rating-wrap i {
    color: var(--primary);
    font-size: 10px;
}

.meta-rating-wrap .rating-num {
    color: #444;
    font-weight: 700;
}

/* Skeleton Loading Animation */
.skeleton-card {
    height: 320px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    flex-grow: 1;
    background-color: #eef0f3;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.skeleton-text {
    height: 12px;
    background-color: #eef0f3;
    margin-top: 16px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.skeleton-price {
    width: 60%;
    height: 16px;
    background-color: #eef0f3;
    margin-top: 12px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.skeleton-image::after,
.skeleton-text::after,
.skeleton-price::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: loading-sweep 1.5s infinite;
}

@keyframes loading-sweep {
    0% { left: -150px; }
    100% { left: 100%; }
}

/* Cart Drawer */
.drawer-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.active .drawer-panel {
    right: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1.5px solid var(--light);
}

.drawer-header h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.close-drawer-btn {
    font-size: 28px;
    background: none;
    color: var(--secondary);
    cursor: pointer;
}

.close-drawer-btn:hover {
    color: var(--dark);
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty-icon {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--light);
    padding-bottom: 16px;
}

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

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-right: 16px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.cart-item-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 14px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 6px;
    width: 90px;
}

.qty-btn {
    background-color: var(--light);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: 700;
}

.qty-val {
    flex-grow: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.remove-cart-item {
    background: none;
    color: var(--secondary);
    font-size: 20px;
    cursor: pointer;
    margin-left: 12px;
}

.remove-cart-item:hover {
    color: var(--accent);
}

.drawer-footer {
    padding: 20px;
    border-top: 1.5px solid var(--light);
    background-color: var(--light);
}

.subtotal-row {
    font-size: 16px;
    margin-bottom: 16px;
}

.subtotal-row strong {
    font-size: 18px;
    color: var(--accent);
}

/* Product Detail Modal specific */
.detail-modal-card {
    width: 860px;
    padding: 40px;
}

.detail-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-image-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.thumbnail-list {
    display: flex;
    gap: 8px;
}

.thumb-item {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.thumb-item.active {
    border-color: var(--primary);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 8px;
}

.detail-category {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.detail-price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.detail-price-row .price-current {
    font-size: 26px;
}

.detail-price-row .price-old {
    font-size: 18px;
}

.detail-desc {
    color: var(--secondary);
    margin-bottom: 24px;
    font-size: 13px;
}

.variants-section {
    margin-bottom: 24px;
}

.variants-section h5 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 10px;
}

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

.size-btn {
    border: 1px solid var(--border-color);
    background-color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.size-btn.active, .size-btn:hover {
    border-color: var(--primary);
    background-color: rgba(241, 122, 172, 0.08);
    color: var(--primary);
}

.detail-action-row {
    display: flex;
    gap: 16px;
}

.detail-action-row .quantity-controls {
    width: 120px;
    height: 44px;
    margin-top: 0;
}

.detail-action-row .qty-btn {
    width: 38px;
    height: 44px;
    font-size: 16px;
}

/* Footer Section */
.app-footer {
    background-color: var(--dark);
    color: var(--white);
}

.footer-desc {
    background-color: var(--dark-light);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: 1px;
}

.desc-text {
    color: var(--secondary);
    font-size: 13px;
    margin-top: 8px;
}

.grid-policies {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.policy-item {
    padding: 24px;
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.policy-item:last-child {
    border-right: none;
}

.policy-item i {
    font-size: 28px;
    color: var(--secondary);
    transition: var(--transition-fast);
}

.policy-item span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.policy-item:hover i {
    color: var(--primary);
}

.links-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-logo {
    max-height: 45px;
}

.brand-subtext {
    color: var(--secondary);
    font-size: 13px;
}

.contact-details li, .quick-links li {
    margin-bottom: 12px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-copyright {
    padding: 20px 0;
    background-color: var(--dark-light);
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
    color: var(--secondary);
}

/* ==========================================
   Responsive Styling (Mobile / Tablet)
   ========================================== */

@media (max-width: 991px) {
    /* Layout */
    .hero-grid-section .grid-container {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-policies {
        grid-template-columns: 1fr 1fr;
    }
    
    .policy-item:nth-child(2) {
        border-right: none;
    }
    
    .search-area {
        width: 45%;
    }

    .image-search-btn span {
        display: none;
    }
    
    .account-actions {
        margin-left: 10px;
    }
    
    .cart-trigger {
        margin-left: 0;
        margin-right: 8px;
        padding: 6px;
    }
    
    .cart-info {
        display: none;
    }
    
    .newsletter-card {
        width: 90%;
    }
    
    .detail-modal-card {
        width: 95%;
        padding: 20px;
    }
    
    .detail-modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    /* Header layout modifications */
    .top-navbar {
        display: none !important;
    }

    .main-header {
        padding: 12px 0;
    }

    .main-header .flex-wrap-mobile {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        background: none;
        font-size: 24px;
        cursor: pointer;
        order: 1;
    }
    
    .logo-area {
        margin: 0 auto;
        order: 2;
    }
    
    .header-logo {
        max-height: 30px;
    }
    
    .search-area {
        display: flex;
        width: 100%;
        order: 3;
    }
    
    .account-actions {
        display: none; /* Mobile user interacts via bottom bar */
    }
    
    .cart-trigger {
        display: none !important;
    }
    
    .nav-menubar {
        display: none; /* Mobile category menus loaded via sidebar drawer */
    }
    
    /* Carousel Adjustments */
    .carousel-container {
        min-height: 250px;
    }
    
    .categories-horizontal-grid {
        gap: 12px;
    }
    
    /* Dynamic grid */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    
    /* Footer layout */
    .links-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .grid-policies {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Mobile sticky footer navigation bar */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: var(--white);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1500;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        color: var(--secondary);
    }
    
    .mobile-bottom-nav .nav-item i {
        font-size: 22px;
        margin-bottom: 2px;
    }
    
    .mobile-bottom-nav .nav-item.active {
        color: var(--primary);
    }
    
    .mobile-bottom-nav .icon-wrap {
        position: relative;
    }
    
    .mobile-bottom-nav .badge {
        position: absolute;
        top: -4px;
        right: -8px;
        background-color: var(--accent);
        color: var(--white);
        border-radius: var(--radius-round);
        font-size: 8px;
        width: 14px;
        height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
    }
    
    /* Mobile sidebar overlay */
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 2200;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
    }
    
    .mobile-sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .mobile-sidebar-panel {
        position: absolute;
        top: 0;
        left: -270px;
        width: 270px;
        height: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        display: flex;
        flex-direction: column;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-sidebar-overlay.active .mobile-sidebar-panel {
        left: 0;
    }
    
    .sidebar-header {
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .close-sidebar-btn {
        background: none;
        font-size: 24px;
        color: var(--secondary);
        cursor: pointer;
    }
    
    .sidebar-body {
        flex-grow: 1;
        overflow-y: auto;
    }
    
    .mobile-category-list li a {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid var(--light);
        font-size: 14px;
        color: var(--dark);
    }
    
    .mobile-category-list li a img {
        width: 20px;
        height: 20px;
        object-fit: cover;
        border-radius: var(--radius-sm);
        margin-right: 12px;
    }
    
    /* Body pad for bottom sticky bar */
    body {
        padding-bottom: 60px;
    }
    
    /* Detail modal adjustments */
    .newsletter-body {
        grid-template-columns: 1fr;
    }
    
    .newsletter-img {
        display: none;
    }
    
    .newsletter-content {
        padding: 24px;
    }
    
    /* Ensure price elements fit on one line on narrow mobile screens */
    .product-card-price {
        gap: 4px;
    }
    .price-current {
        font-size: 14px;
    }
    .price-old {
        font-size: 12px;
    }
    .price-discount {
        font-size: 11px;
    }
}

.product-card-delivery {
    color: var(--primary) !important;
}


.vendor-badge {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-right: 4px;
    text-transform: uppercase;
    vertical-align: middle;
    line-height: 1;
}
.three-box-promos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.promo-box {
    background: #fff;
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.promo-title {
    font-size: 16px;
    margin: 0;
}
.promo-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.promo-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.promo-item-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background-color: #f8f9fa;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.promo-price {
    color: #ea580c;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
}
.promo-price span {
    font-size: 11px;
}
.promo-subtitle {
    margin-top: 4px;
    font-size: 11px;
    padding: 2px 6px;
    background: #f1f5f9;
    border-radius: 4px;
    display: inline-block;
    color: #475569;
}
.promo-subtitle.orange {
    background: #fff7ed;
    color: #ea580c;
}
.promo-subtitle.green {
    background: #f0fdf4;
    color: #16a34a;
}
@media (max-width: 991px) {
    .three-box-promos {
        grid-template-columns: 1fr;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.best-seller-badge {
    display: inline-block;
    background-color: #000;
    color: #fff;
    font-weight: 700;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-right: 5px;
    text-transform: uppercase;
    vertical-align: middle;
    line-height: 1;
}
