/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Brand Colors (Based on RaviLar Logo) */
    --primary-color: #1E2B3E;      /* Dark Navy Blue */
    --primary-hover: #131B27;
    --primary-light: rgba(30, 43, 62, 0.05);
    
    --accent-color: #C5A880;       /* Gold/Bronze/Sand */
    --accent-hover: #B4966E;
    --accent-light: rgba(197, 168, 128, 0.1);
    
    /* Neutral Colors */
    --text-dark: #2D3748;
    --text-muted: #718096;
    --bg-light: #F8F9FA;
    --bg-cream: #FAF8F5;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    
    /* Utility Colors */
    --success-color: #2F855A;
    --error-color: #C53030;
    --whatsapp-color: #25D366;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-title: 'Montserrat', sans-serif;
    
    /* Effects & Transitions */
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 10px 30px rgba(30, 43, 62, 0.08);
    --box-shadow-modal: 0 20px 50px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

button {
    cursor: pointer;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: #CBD5E0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A0AEC0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Helper classes */
.text-gold { color: var(--accent-color); }
.hide { display: none !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

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

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

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 8px 0;
    box-shadow: var(--box-shadow);
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-container {
    height: 70px;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg {
    transition: var(--transition-smooth);
}

.logo:hover .logo-svg {
    transform: scale(1.05) rotate(-2deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-name .navy { color: var(--primary-color); }
.brand-name .gold { color: var(--accent-color); }
.brand-name .white { color: var(--bg-white); }

.brand-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-top: 2px;
}

.brand-tagline.white-tag { color: var(--accent-color); }

/* Navigation Links */
.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-trigger {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1.2rem;
}

.cart-trigger:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-white);
}

.menu-mobile-trigger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #FAF8F5 0%, #FFFFFF 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.hero-content .hero-tagline {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    display: inline-block;
    margin-bottom: 16px;
    padding: 4px 12px;
    background-color: var(--accent-light);
    border-radius: 50px;
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    padding: 20px;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background-color: var(--accent-light);
    border-radius: var(--border-radius-lg);
    z-index: 1;
}

.hero-img {
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-hover);
    transform: rotate(1deg);
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-img {
    transform: rotate(0) scale(1.02);
}

.hero-floating-card {
    position: absolute;
    bottom: 40px;
    left: -20px;
    background-color: var(--bg-white);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-hover);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
    transition: opacity 0.5s ease-in-out;
}

.hero-floating-card i {
    font-size: 1.8rem;
}

.hero-floating-card h4 {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.hero-floating-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

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

/* ==========================================================================
   FEATURES / DIFERENCIAIS
   ========================================================================== */
.features-section {
    padding: 24px 0;
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    text-align: center;
    padding: 8px;
}

.feature-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 10px;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.feature-card h3 {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */
.categories-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.category-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.category-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(30,43,62,0.4) 100%);
}

.category-info {
    padding: 20px;
}

.category-info h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.category-info span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.category-info span i {
    transition: var(--transition-smooth);
}

.category-card:hover .category-info span i {
    transform: translateX(4px);
}

/* ==========================================================================
   PRODUCTS CATALOG
   ========================================================================== */
.products-section {
    padding: 80px 0;
}

/* Toolbar Filters */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    background-color: var(--bg-light);
}

.search-box input:focus {
    border-color: var(--accent-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px var(--accent-light);
}

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

.filter-btn {
    padding: 10px 20px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.filter-btn:hover {
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-box label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.sort-box select {
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sort-box select:focus {
    border-color: var(--accent-color);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
    min-height: 300px;
}

.loading-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    font-size: 1.2rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-products i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

/* Product Card */
.product-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(197, 168, 128, 0.4);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

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

.product-actions-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to top, rgba(30,43,62,0.8) 0%, rgba(30,43,62,0) 100%);
    display: flex;
    justify-content: center;
    gap: 12px;
    transition: var(--transition-smooth);
    z-index: 3;
}

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

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
    transform: scale(1.1);
}

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

.product-cat {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-title {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.4;
    height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #F6AD55; /* star orange-yellow */
    margin-bottom: 12px;
}

.product-rating span {
    color: var(--text-muted);
    margin-left: 4px;
    font-size: 0.75rem;
}

.product-price-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--bg-light);
}

.product-price {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.add-cart-btn-card {
    background-color: var(--primary-color);
    color: var(--bg-white);
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.add-cart-btn-card:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    padding: 35px 0 25px;
    background-color: var(--bg-cream);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

.testimonial-card .stars {
    color: #F6AD55;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-light);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--accent-color);
}

.testimonial-user h4 {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
}

.testimonial-user p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 40px 0;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-info-block h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.contact-info-block > p {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.contact-details {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.contact-item {
    display: flex;
    justify-content: center;
    text-align: center;
}

.contact-item h4 {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
}

/* Contact Form Block */
.contact-form-block {
    background-color: var(--bg-light);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.contact-form-block h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group.col-8 { grid-column: span 1; } /* placeholder logic fallback */
.form-group.col-4 { grid-column: span 1; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-success-msg {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: rgba(47, 133, 90, 0.1);
    color: var(--success-color);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.4s ease-out;
}

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

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding-top: 80px;
    border-top: 5px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 5fr 3fr 4fr;
    gap: 64px;
    padding-bottom: 60px;
}

.logo-footer {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 400px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 24px;
    position: relative;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p i {
    margin-right: 8px;
    color: var(--accent-color);
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background-color: var(--primary-hover);
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.payment-badges {
    display: flex;
    gap: 12px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.payment-badges i {
    transition: var(--transition-smooth);
}

.payment-badges i:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   CART DRAWER (SIDEBAR PANEL)
   ========================================================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-header h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.cart-drawer-close:hover {
    background-color: var(--error-color);
    color: var(--bg-white);
}

/* Cart Items Container */
.cart-items-container {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-cart-message {
    text-align: center;
    margin: auto 0;
    padding: 40px 0;
    color: var(--text-muted);
}

.empty-cart-message i {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.6;
    margin-bottom: 16px;
}

.empty-cart-message p {
    font-size: 1rem;
    margin-bottom: 24px;
}

/* Cart Item Element styling */
.cart-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    background-color: var(--bg-light);
    flex-shrink: 0;
}

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

.cart-item-title {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 24px;
    height: 24px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.cart-qty-btn:hover {
    background-color: var(--border-color);
}

.cart-qty-val {
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-item-remove {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    padding: 4px;
}

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

/* Cart Footer Panel */
.cart-drawer-footer {
    padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 12px));
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.cart-totals {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.cart-subtotal-val {
    color: var(--accent-color);
}

.shipping-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-checkout {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    transition: var(--transition-smooth);
}

.btn-checkout:not(:disabled):hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   MODAL DIALOGS (PRODUCT INFO / CHECKOUT FORM)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 800px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-modal);
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition-smooth);
    max-height: 90vh;
}

.modal-overlay.open .modal-container {
    transform: scale(1);
}

.modal-container.modal-sm {
    max-width: 480px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--error-color);
    color: var(--bg-white);
}

/* Product Detail Modal Layout */
.modal-product-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    height: 600px;
    max-height: 90vh;
}

.modal-product-image {
    background-color: var(--bg-light);
    height: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-width: 0; /* Prevents flex children (thumbnails) from expanding grid column width */
}

.modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-product-info {
    padding: 32px;
    padding-right: 48px; /* Clear close button area */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 100%;
}

.modal-product-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.modal-product-info h2 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.modal-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.modal-product-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #F6AD55;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.modal-product-stars span {
    color: var(--text-muted);
    margin-left: 8px;
    font-size: 0.8rem;
}

.modal-product-price {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0;
}

.modal-product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.modal-purchase-controls {
    display: flex;
    gap: 16px;
    margin-top: auto;
    flex-wrap: nowrap; /* Keep quantity and cart button on the same line */
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

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

.qty-val {
    padding: 0 16px;
    font-weight: 700;
    font-size: 1.05rem;
    min-width: 44px;
    text-align: center;
}

.modal-purchase-controls .btn-primary {
    flex-grow: 1;
}

/* Checkout Modal Styling */
.checkout-modal-header {
    padding: 32px 32px 16px;
    border-bottom: 1px solid var(--border-color);
}

.checkout-modal-header h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.checkout-modal-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

#checkout-form {
    padding: 24px 32px 32px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

#checkout-form .form-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

#checkout-form .form-row .form-group {
    margin-bottom: 16px;
}

#checkout-form .form-row .col-8 {
    grid-column: span 8;
}

#checkout-form .form-row .col-4 {
    grid-column: span 4;
}

#checkout-form .form-row .col-6 {
    grid-column: span 6;
}

#whatsapp-submit-btn {
    background-color: var(--whatsapp-color);
    color: var(--bg-white);
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 16px;
}

#whatsapp-submit-btn:hover {
    background-color: #20BA56;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

/* ==========================================================================
   RESPONSIVENESS (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
    }
    
    .contact-container {
        gap: 32px;
    }
    
    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Header Menu Toggle */
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        z-index: 99;
        transition: var(--transition-smooth);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        border-top: 1px solid var(--border-color);
    }
    
    .main-nav.open {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
    }
    
    .menu-mobile-trigger {
        display: flex;
    }
    
    /* Hero layout */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
    
    /* Catalog toolbar */
    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filter-categories {
        order: 3;
        justify-content: center;
    }
    
    .sort-box {
        justify-content: space-between;
    }
    
    /* Modal details responsive */
    .modal-product-layout {
        display: flex;
        flex-direction: column;
        max-height: 90vh;
        height: auto;
    }
    
    .modal-product-image {
        min-height: auto;
        height: auto;
        padding: 12px 16px 4px 16px;
        flex-shrink: 0;
    }
    
    .product-gallery-wrapper {
        gap: 8px !important;
    }
    
    .modal-product-info {
        padding: 8px 24px 24px 24px;
        flex-grow: 1;
        overflow-y: auto;
    }
    
    .modal-purchase-controls {
        flex-wrap: nowrap !important;
        gap: 12px !important;
    }
    
    .modal-purchase-controls .btn-primary {
        padding: 12px 16px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }
    
    .modal-purchase-controls .qty-btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    .modal-purchase-controls .qty-val {
        padding: 0 8px !important;
        min-width: 32px !important;
        font-size: 0.95rem !important;
    }
    
    /* Checkout modal form fields responsive */
    #checkout-form .form-row {
        grid-template-columns: 1fr;
    }
    
    #checkout-form .form-row .col-8,
    #checkout-form .form-row .col-4,
    #checkout-form .form-row .col-6 {
        grid-column: span 12;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 14px;
        padding: 4px 0;
    }
    
    .feature-icon-wrapper {
        margin: 0;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
    }
    
    .feature-card h3 {
        margin-bottom: 2px;
        font-size: 0.95rem;
    }
    
    .feature-card p {
        font-size: 0.78rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-img-container {
        height: 120px;
    }

    .category-info {
        padding: 12px 10px;
    }

    .category-info h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .category-info span {
        font-size: 0.78rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 40px !important;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .contact-form-block {
        padding: 24px;
    }
}

/* ==========================================================================
   LOGO & BRANDING STYLING FOR IMAGES
   ========================================================================== */
.logo-img {
    max-height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition-smooth);
}

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

.logo-footer .logo-img {
    max-height: 70px;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    width: fit-content;
}

.admin-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: rgba(197, 168, 128, 0.05);
    transform: translateY(-2px);
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.admin-body {
    background-color: var(--bg-light);
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Stats Row */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 8px;
}

.stat-card {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card:nth-child(2n) .stat-icon {
    background-color: var(--accent-light);
    color: var(--accent-color);
}

.stat-info h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Form & List Columns */
.admin-content-grid {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 992px) {
    .admin-content-grid {
        grid-template-columns: 1fr;
    }
}

.admin-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.admin-card-header {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-card-header h2 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.admin-card-body {
    padding: 32px;
}

.admin-form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Admin Table styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    padding: 16px 20px;
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: rgba(30, 43, 62, 0.01);
}

.admin-table-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-light);
}

.admin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-category {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.badge-promo {
    background-color: var(--accent-light);
    color: var(--accent-color);
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.btn-action-edit {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.btn-action-edit:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-action-delete {
    background-color: rgba(197, 48, 48, 0.1);
    color: var(--error-color);
}

.btn-action-delete:hover {
    background-color: var(--error-color);
    color: var(--bg-white);
}

.admin-status-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: var(--box-shadow-modal);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
    font-weight: 600;
}

.admin-status-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.admin-status-toast.success {
    background-color: var(--success-color);
}

.admin-status-toast.error {
    background-color: var(--error-color);
}

/* ==========================================================================
   MEDIA DRAG & DROP UPLOAD STYLES
   ========================================================================== */
.media-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    text-align: center;
    background-color: var(--bg-light);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.media-upload-zone:hover,
.media-upload-zone.dragover {
    border-color: var(--accent-color);
    background-color: rgba(197, 168, 128, 0.05);
}

.media-upload-zone i {
    font-size: 2.2rem;
    color: var(--accent-color);
}

.media-upload-zone p {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.media-upload-zone span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Upload Progress Bar */
.upload-progress-container {
    margin-top: 16px;
    background-color: var(--border-color);
    border-radius: 4px;
    height: 20px;
    position: relative;
    overflow: hidden;
}

.upload-progress-fill {
    background-color: var(--success-color);
    height: 100%;
    transition: width 0.1s ease-out;
}

.upload-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Media Preview Grid */
.media-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.media-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview-item .video-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(30, 43, 62, 0.8);
    color: var(--bg-white);
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 2px;
}

.media-preview-remove {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(197, 48, 48, 0.75);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-smooth);
}

.media-preview-item:hover .media-preview-remove {
    opacity: 1;
}

/* ==========================================================================
   PRODUCT CATALOG PAGINATION STYLES
   ========================================================================== */
.catalog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition-smooth);
    background-color: var(--bg-white);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: var(--accent-light);
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-arrow {
    font-size: 0.85rem;
}

/* ==========================================================================
   PRODUCT DETAILS MODAL GALLERY STYLES
   ========================================================================== */
.product-gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: 100%;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-main img,
.gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb-item {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    background-color: var(--bg-light);
    position: relative;
}

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

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

.gallery-thumb-item .thumb-video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(30, 43, 62, 0.7);
    color: var(--bg-white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* ==========================================================================
   MOBILE-FIRST HIGH-FIDELITY OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 576px) {
    /* 2 Columns on Mobile for better visual display (same as premium marketplaces) */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .product-card {
        border-radius: var(--border-radius-sm);
    }
    
    .product-img-wrapper {
        height: 145px !important;
    }
    
    .product-info {
        padding: 12px 10px !important;
    }
    
    .product-title {
        font-size: 0.85rem !important;
        height: 38px !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
    }
    
    .product-rating {
        font-size: 0.7rem !important;
        margin-bottom: 6px !important;
        gap: 2px !important;
    }
    
    .product-rating span {
        margin-left: 2px !important;
    }
    
    .product-price {
        font-size: 1rem !important;
    }
    
    .add-cart-btn-card {
        width: 32px !important;
        height: 32px !important;
        border-radius: 4px !important;
    }

    /* Floating CTA adjustments for mobile fingers */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Layout details page sheet style for mobile */
    .modal-container {
        max-height: 93vh;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        position: fixed;
        bottom: 0;
        margin: 0;
        overflow: hidden; /* Prevent form/details contents from spilling out */
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .gallery-main {
        height: auto;
        aspect-ratio: 1 / 1;
    }
    
    .modal-product-layout {
        display: flex;
        flex-direction: column;
        max-height: 93vh;
        height: auto;
    }
    
    .modal-product-info {
        padding: 8px 16px calc(32px + env(safe-area-inset-bottom, 12px)) !important;
        flex-grow: 1;
        overflow-y: auto;
        max-height: none !important;
    }
    
    #checkout-form {
        padding: 20px 24px calc(32px + env(safe-area-inset-bottom, 12px)) !important;
        max-height: calc(93vh - 120px) !important;
        overflow-y: auto;
    }
    
    .modal-product-info h2 {
        font-size: 1.4rem !important;
    }

    /* Horizontal scroll for categories on mobile */
    .filter-categories {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding: 4px 0 !important;
        margin: 0 0 16px !important;
        justify-content: flex-start !important;
        scrollbar-width: none !important;
        width: 100% !important;
    }
    .filter-categories::-webkit-scrollbar {
        display: none !important;
    }
    .filter-btn {
        flex-shrink: 0 !important;
    }

    /* Increase pagination button size for mobile fingers */
    .pagination-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 0.95rem !important;
    }
    .catalog-pagination {
        gap: 10px !important;
        margin-top: 36px !important;
    }
}

/* ==========================================================================
   DYNAMIC CATEGORY MANAGEMENT
   ========================================================================== */
.admin-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.admin-category-row:hover {
    border-color: var(--accent-color);
    background-color: rgba(197, 168, 128, 0.05);
}

/* ==========================================================================
   ADMIN TABS & PAGINATION
   ========================================================================== */
.admin-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .admin-tabs {
        justify-content: center;
    }
}

.admin-tab-btn {
    padding: 10px 16px;
    background: none;
    border: none;
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-tab-btn:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.admin-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
    background-color: rgba(197, 168, 128, 0.08);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   CIRCULAR TESTIMONIALS SLIDER
   ========================================================================== */
.circular-testimonials-container {
    width: 100%;
    max-width: 960px;
    margin: 20px auto 0;
    padding: 0 16px;
}

.circular-testimonials-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.testimonials-images-wrapper {
    position: relative;
    width: 100%;
    height: 290px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-image {
    position: absolute;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 1.2rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    transition: transform 0.8s cubic-bezier(0.4, 2, 0.3, 1), opacity 0.8s ease, z-index 0.8s ease;
    cursor: pointer;
}

.testimonials-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ct-name {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.ct-designation {
    display: none;
}

.ct-quote {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.65;
    min-height: 90px;
    margin-bottom: 12px;
}

.ct-navigation {
    display: flex;
    gap: 16px;
}

.ct-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: var(--box-shadow);
}

.ct-nav-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

@media (max-width: 992px) {
    .circular-testimonials-grid {
        gap: 24px;
    }
    .ct-image {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .circular-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .testimonials-images-wrapper {
        height: 240px;
        order: 1;
    }
    
    .ct-image {
        width: 150px;
        height: 150px;
    }
    
    .testimonials-content-wrapper {
        order: 2;
    }

    .ct-navigation {
        justify-content: center;
    }
    
    .ct-quote {
        min-height: auto;
    }
}

/* ==========================================================================
   HERO 3D SHOWCASE CAROUSEL
   ========================================================================== */
.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.hero-carousel-card {
    position: absolute;
    width: 240px;
    height: 380px;
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--bg-light);
    transform-style: preserve-3d;
}

.hero-carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 16px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-carousel-card.active .hero-carousel-card-overlay {
    opacity: 1;
}

.hero-carousel-card-overlay h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-family: var(--font-title);
}

.hero-carousel-card-overlay p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
    z-index: 25;
    box-shadow: var(--box-shadow);
}

.hero-carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--box-shadow-hover);
}

.hero-carousel-btn.prev {
    left: -16px;
}

.hero-carousel-btn.next {
    right: -16px;
}

@media (max-width: 992px) {
    .hero-carousel-container {
        height: 380px;
    }
    .hero-carousel-card {
        width: 190px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-carousel-container {
        height: 350px;
        margin-top: 24px;
    }
    
    .hero-carousel-card {
        width: 170px;
        height: 270px;
    }
    
    .hero-carousel-btn.prev {
        left: 0px;
    }

    .hero-carousel-btn.next {
        right: 0px;
    }
}

/* ==========================================================================
   ADMIN LOGIN SCREEN & PASSWORD TOGGLE STYLES
   ========================================================================== */
.admin-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.login-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-modal);
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: modalReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-logo {
    max-width: 180px;
    margin-bottom: 24px;
}

.login-card h2 {
    font-family: var(--font-title);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: var(--primary-color);
}

.login-error-message {
    background-color: rgba(197, 48, 48, 0.1);
    color: var(--error-color);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==========================================================================
   FLYER GENERATOR & PRINT STYLES
   ========================================================================== */
.flyer-product-select-list {
    scrollbar-width: thin;
}

.flyer-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-white);
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.flyer-select-item:hover {
    border-color: var(--primary-color);
    background-color: rgba(229, 62, 62, 0.02);
}

.flyer-select-item.selected {
    border-color: var(--primary-color);
    background-color: rgba(229, 62, 62, 0.05);
}

.flyer-select-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
}

.flyer-select-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.flyer-select-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flyer-select-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.flyer-select-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* A4 Sheet Preview Canvas */
.flyer-a4-sheet {
    width: 794px;
    height: 1123px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
    transform: scale(0.58);
    transform-origin: top center;
    margin-bottom: -470px;
}

.flyer-preview-body {
    background-color: #525659;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    height: 680px;
    overflow: hidden;
    position: relative;
}

.flyer-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #edf2f7;
}

.flyer-logo-area {
    width: 140px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.flyer-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.flyer-header-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: inherit;
}

.flyer-header-content h1 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.flyer-header-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    opacity: 0.9;
}

.flyer-badge-validity {
    display: inline-block;
    background-color: #FEEBC8;
    color: #C05621;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-top: 4px;
    align-self: flex-start;
}

.flyer-body {
    flex-grow: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #fff;
    overflow: hidden;
}

.flyer-grid {
    display: grid;
    gap: 20px;
    height: 100%;
    align-content: start;
}

.flyer-grid.col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.flyer-grid.col-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

/* Flyer Product Card */
.flyer-card {
    background-color: white;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.flyer-card-img-wrapper {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
    background-color: var(--bg-white);
}

.flyer-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.flyer-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    height: auto;
    line-height: 1.3;
    display: block;
    overflow: visible;
}

.flyer-card-price-tag {
    display: flex;
    align-items: flex-start;
    color: #E53E3E;
    font-family: var(--font-title);
    margin-top: auto;
}

.flyer-price-currency {
    font-size: 0.9rem;
    font-weight: 800;
    margin-top: 4px;
    margin-right: 2px;
}

.flyer-price-integer {
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 0.9;
}

.flyer-price-cents {
    font-size: 0.9rem;
    font-weight: 800;
    margin-top: 4px;
    border-bottom: 2px solid #E53E3E;
    line-height: 1;
}

.flyer-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #E53E3E;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.flyer-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 80px 0;
    text-align: center;
}

.flyer-empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.flyer-footer {
    padding: 16px 24px;
    text-align: center;
    background-color: white;
}

.flyer-footer-divider {
    border-top: 2px dashed #edf2f7;
    margin-bottom: 12px;
}

.flyer-footer p {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Print Styles */
@media print {
    /* Hide all main elements of the site */
    header, footer, nav, .admin-tabs, .flyer-controls-card, .admin-card-header, .admin-status-toast {
        display: none !important;
    }
    
    body > :not(main) {
        display: none !important;
    }
    
    /* Reset layout of all parent containers of the flyer sheet */
    .admin-container, main, #tab-panfleto, .admin-content-grid, .flyer-preview-card, .admin-card-body {
        display: contents !important;
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
        background: transparent !important;
    }
    
    body, html {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        overflow: hidden !important;
    }

    #flyer-a4-sheet {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        max-height: 297mm !important;
        max-width: 210mm !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        transform: none !important;
        box-sizing: border-box !important;
        background: white !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #flyer-a4-sheet, #flyer-a4-sheet * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    @page {
        size: A4 portrait;
        margin: 0;
    }
}

/* Header alignment options */
.flyer-header.align-left {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
}
.flyer-header.align-left .flyer-header-content {
    align-items: flex-start !important;
}
.flyer-header.align-left .flyer-badge-validity {
    align-self: flex-start !important;
}

.flyer-header.align-center {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 12px !important;
}
.flyer-header.align-center .flyer-header-content {
    align-items: center !important;
}
.flyer-header.align-center .flyer-badge-validity {
    align-self: center !important;
}

.flyer-header.align-right {
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: right !important;
}
.flyer-header.align-right .flyer-header-content {
    align-items: flex-end !important;
}
.flyer-header.align-right .flyer-badge-validity {
    align-self: flex-end !important;
}

/* Compact Layout Modifications */

/* 7 to 9 items: Medium compactness */
.flyer-a4-sheet.compact-medium .flyer-header {
    padding: 16px;
    gap: 16px;
}
.flyer-a4-sheet.compact-medium .flyer-logo-area {
    width: 120px;
    height: 45px;
    padding: 0;
}
.flyer-a4-sheet.compact-medium .flyer-header-content h1 {
    font-size: 1.5rem;
}
.flyer-a4-sheet.compact-medium .flyer-header-content h2 {
    font-size: 0.95rem;
}
.flyer-a4-sheet.compact-medium .flyer-badge-validity {
    font-size: 0.7rem;
    padding: 3px 8px;
}
.flyer-a4-sheet.compact-medium .flyer-body {
    padding: 16px;
}
.flyer-a4-sheet.compact-medium .flyer-grid {
    gap: 14px;
}
.flyer-a4-sheet.compact-medium .flyer-card {
    padding: 12px;
}
.flyer-a4-sheet.compact-medium .flyer-card-img-wrapper {
    height: 95px;
    margin-bottom: 8px;
    aspect-ratio: auto;
}
.flyer-a4-sheet.compact-medium .flyer-card-title {
    font-size: 0.8rem;
    margin-bottom: 6px;
    height: auto;
    line-height: 1.2;
}
.flyer-a4-sheet.compact-medium .flyer-price-integer {
    font-size: 1.9rem;
}
.flyer-a4-sheet.compact-medium .flyer-price-currency,
.flyer-a4-sheet.compact-medium .flyer-price-cents {
    font-size: 0.8rem;
}

/* 10 or more items: Extra compactness */
.flyer-a4-sheet.compact-extra .flyer-header {
    padding: 12px 16px;
    gap: 12px;
}
.flyer-a4-sheet.compact-extra .flyer-logo-area {
    width: 100px;
    height: 38px;
    padding: 0;
}
.flyer-a4-sheet.compact-extra .flyer-header-content h1 {
    font-size: 1.3rem;
}
.flyer-a4-sheet.compact-extra .flyer-header-content h2 {
    font-size: 0.85rem;
}
.flyer-a4-sheet.compact-extra .flyer-badge-validity {
    font-size: 0.65rem;
    padding: 2px 6px;
    margin-top: 2px;
}
.flyer-a4-sheet.compact-extra .flyer-body {
    padding: 12px;
}
.flyer-a4-sheet.compact-extra .flyer-grid {
    gap: 10px;
}
.flyer-a4-sheet.compact-extra .flyer-card {
    padding: 8px;
    border-width: 1px;
}
.flyer-a4-sheet.compact-extra .flyer-card-img-wrapper {
    height: 75px;
    margin-bottom: 4px;
    aspect-ratio: auto;
}
.flyer-a4-sheet.compact-extra .flyer-card-title {
    font-size: 0.72rem;
    margin-bottom: 4px;
    height: auto;
    line-height: 1.1;
}
.flyer-a4-sheet.compact-extra .flyer-price-integer {
    font-size: 1.55rem;
}
.flyer-a4-sheet.compact-extra .flyer-price-currency,
.flyer-a4-sheet.compact-extra .flyer-price-cents {
    font-size: 0.72rem;
}
.flyer-a4-sheet.compact-extra .flyer-card-badge {
    top: 4px;
    left: 4px;
    padding: 2px 4px;
    font-size: 0.6rem;
}
.flyer-a4-sheet.compact-extra .flyer-footer {
    padding: 10px 16px;
}
.flyer-a4-sheet.compact-extra .flyer-footer p {
    font-size: 0.55rem;
}
.flyer-a4-sheet.compact-extra .flyer-footer-divider {
    margin-bottom: 6px;
}

/* Saved Flyer List Premium Layout */
.saved-flyer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    gap: 8px;
    transition: all 0.2s ease;
}

.saved-flyer-item:hover {
    background-color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.saved-flyer-item span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.saved-flyer-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.saved-flyer-actions button {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.saved-flyer-actions button.btn-load {
    background-color: #2b6cb0;
    color: white;
}

.saved-flyer-actions button.btn-load:hover {
    background-color: #1a4f76;
}

.saved-flyer-actions button.btn-del {
    background-color: var(--error-color);
    color: white;
}

.saved-flyer-actions button.btn-del:hover {
    background-color: #c53030;
}



