/* PaseosCostaRica/promotions.css */
/* Unified Stylesheet (Includes Base, Desktop, Promo, and Mobile Styles) */

/* --- Root Variables --- */
:root {
    --primary: #10b981; --primary-dark: #059669; --primary-light: #d1fae5;
    --secondary: #e11d48; --secondary-dark: #be123c; --secondary-light: #ffe4e6;
    --text-dark: #1f2937; --text-medium: #4b5563; --text-light: #6b7280;
    --background: #ffffff; --background-alt: #f9fafb;
    --border: #e5e7eb; --border-light: #f3f4f6;
    --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --radius: 0.5rem;

    --promo-bg-main: var(--secondary-light);
    --promo-bg-accent: #fecdd3;
    --promo-text-dark: #9f1239;
    --promo-text-light: var(--secondary-dark);
    --promo-button-bg: var(--secondary);
    --promo-button-hover-bg: var(--secondary-dark);
    --promo-border-accent: var(--secondary);

    --promo-dress-text-dark: #713f12;
    --promo-dress-button: #a16207;
}

/* --- Base Site Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); line-height: 1.6; background-color: var(--background); }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.2; margin-bottom: 0.75em; }
h1 { font-size: 2rem; }
h2.activity-title { font-size: 1.5rem; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-dark); }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.btn { display: inline-block; padding: 0.75rem 1.5rem; font-weight: 600; text-align: center; border-radius: var(--radius); cursor: pointer; transition: all 0.2s ease; border: none; }
.btn-secondary { background-color: var(--secondary); color: white; }
.btn-secondary:hover { background-color: var(--secondary-dark); color: white; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-block { display: block; width: 100%; }
.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}
.btn.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn.btn-primary:hover {
    background-color: var(--primary-dark);
}

.product-image,
.promo-grid-item img { /* This applies to actual <img> tags inside .promo-grid-item */
    object-fit: cover;
    object-position: center top;
    width: 100%;
    display: block;
}

/* START FIX: WordPress Content Image Responsiveness */
.wp-block-image figure {
    margin-left: auto; /* Helps centering if figure's max-width is less than container */
    margin-right: auto; /* Helps centering if figure's max-width is less than container */
    max-width: 100%;    /* Ensures the figure itself is responsive */
    box-sizing: border-box;
}
.wp-block-image figure img,
figure.is-resized img { /* Targets images within WP figures, especially resized ones */
    width: 100% !important; /* Makes the image fill the figure's width, overriding inline styles */
    height: auto !important; /* Maintains aspect ratio, overriding inline styles */
    display: block;
}
.wp-block-image.is-resized, /* Targets the WP block itself if it has is-resized */
figure.is-resized { /* Targets the figure if it has is-resized */
    /* This helps ensure the container of a WP resized image scales */
    width: auto !important; /* Override inline style from WP if it's a fixed width */
    max-width: 100%; /* Still respect container boundaries */
}
/* END FIX: WordPress Content Image Responsiveness */


/* --- Template Sections (Desktop First) --- */
/* Note: Specific .header, .nav, .mobile-menu-btn styles are now further down, unified. */
/* This .header styling is general for desktop. */
.header { 
    position: sticky; 
    top: 0; 
    z-index: 100; /* z-index for header itself */
    background-color: rgba(255,255,255,0.95); 
    backdrop-filter: blur(8px); 
    border-bottom: 1px solid var(--border); 
}
.header-container { display: flex; align-items: center; justify-content: space-between; height: 4rem; /* padding is in general .container */ }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.25rem; color: var(--primary); }
.logo img { width: 2.5rem; height: 2.5rem; border-radius: 9999px; }
/* .nav general desktop rules are with the specific nav block later */
/* .mobile-menu-btn general desktop rules are with the specific nav block later */


.hero { padding: 2rem 0; }
.breadcrumbs { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: var(--text-light); margin-bottom: 1.5rem; }
.breadcrumb-item:not(:last-child)::after { content: '/'; margin-left: 0.25rem; margin-right: 0.25rem; }
.article-header { margin-bottom: 2rem; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.badge { display: inline-block; padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: 600; border-radius: 9999px; text-transform: uppercase; }
.badge-primary { background-color: var(--primary-light); color: var(--primary-dark); }
h1.article-title { margin-bottom: 1rem; color: var(--text-dark); }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--text-light); }
.meta-item { display: flex; align-items: center; gap: 0.25rem; }
.hero-image { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.hero-image img { width: 100%; object-fit: cover; }
.image-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); color: white; padding: 1rem; font-size: 0.875rem; }

.main-content { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
.article-content { order: 2; }
.sidebar { order: 1; }
.intro-text { font-size: 1.125rem; margin-bottom: 2rem; color: var(--text-medium); }

.activity-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-medium); margin-bottom: 2.5rem; background-color: var(--background); }
.activity-card-content { padding: 1.5rem; }
.activity-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.activity-number { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background-color: var(--primary-light); color: var(--primary-dark); font-weight: 700; font-size: 1.25rem; border-radius: 9999px; flex-shrink: 0; }
.activity-description { color: var(--text-medium); margin-bottom: 1.5rem; }
.activity-image { position: relative; margin-bottom: 1.5rem; }
.activity-image img { width: 100%; border-radius: var(--radius); }
.tips-container { background-color: #fff8e1; border-radius: var(--radius); padding: 1rem; margin-top: 1.5rem; }
.tips-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; color: #b45309; font-weight: 600; }
.tips-list { list-style: none; padding-left: 0; }
.tip-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: #92400e; margin-bottom: 0.5rem; }
.tip-item::before { content: ''; display: block; width: 0.375rem; height: 0.375rem; background-color: #f59e0b; border-radius: 9999px; margin-top: 0.3em; flex-shrink: 0; }

.sidebar-card { background-color: var(--background); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 2rem; }
.sidebar-card-image { height: 12rem; background-size: cover; background-position: center; }
.sidebar-card-content { padding: 1rem; }
.sidebar-card-title { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-dark); } /* Used by JS for sidebar product list */
.sidebar-card-text { font-size: 0.875rem; color: var(--text-medium); margin-bottom: 1rem; }

.weather-widget { padding: 1rem; }
.cta-section { background: linear-gradient(to right, var(--primary-light), #a7f3d0); border-radius: var(--radius); padding: 2rem; margin-bottom: 2rem; text-align: center; }
.cta-title { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 0.5rem; }
.cta-description { color: var(--primary-dark); opacity: 0.9; margin-bottom: 1.5rem; }
.cta-buttons { display: flex; flex-direction: column; gap: 0.75rem; max-width: 20rem; margin: 0 auto; }
.cta-buttons .btn-secondary { background-color: var(--primary); }
.cta-buttons .btn-secondary:hover { background-color: var(--primary-dark); }

.footer { background-color: var(--text-dark); color: var(--background-alt); padding: 3rem 0 1rem; }
.footer-content { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-column h4 { color: white; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-light); font-size: 0.875rem; }
.footer-links a:hover { color: white; }
.footer-bottom { text-align: center; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--text-medium); font-size: 0.875rem; color: var(--text-light); }


/* --- Promotional Snippet Styles --- */
.promo-loading-placeholder { display: flex; align-items: center; justify-content: center; min-height: 100px; background-color: var(--background-alt); color: var(--text-light); font-style: italic; padding: 1rem; text-align: center; border-radius: var(--radius); width: 100%; }
.promo-loading-placeholder .spinner { border: 4px solid rgba(0,0,0,0.1); width: 24px; height: 24px; border-radius: 50%; border-left-color: var(--primary); animation: spin 1s ease infinite; display: inline-block; margin-right: 10px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.promo-banner, .promo-callout, .promo-sidebar-item, .promo-grid-container, .promo-strip-container, .sidebar-card.promo-sidebar-card, .sidebar-card.promo-sidebar-product-list { border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; }

.promo-banner { background: linear-gradient(to right, var(--promo-bg-main), var(--promo-bg-accent)); }
.promo-banner-content { display: flex; flex-direction: column; }
.promo-banner-text { padding: 1.5rem; flex-grow: 1; }
.promo-banner-badge { display: inline-block; background-color: var(--promo-button-bg); color: white; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; }
.promo-banner-title { font-size: 1.5rem; color: var(--promo-text-dark); margin-bottom: 0.5rem; }
.promo-banner-description { color: var(--promo-text-light); margin-bottom: 1.25rem; font-size: 0.95rem; }
.promo-banner-image { height: 12rem; background-size: cover; background-position: center; }
.promo-banner .btn-secondary { background-color: var(--promo-button-bg); border-color: var(--promo-button-bg); }
.promo-banner .btn-secondary:hover { background-color: var(--promo-button-hover-bg); }

.promo-callout { background-color: var(--promo-bg-main); border-left: 4px solid var(--promo-border-accent); padding: 1.25rem; margin-top: 2rem; margin-bottom: 2rem; border-radius: 0 var(--radius) var(--radius) 0; }
.promo-callout-title { font-weight: 700; color: var(--promo-text-dark); margin-bottom: 0.5rem; font-size: 1.25rem; }
.promo-callout-text { font-size: 0.9rem; color: var(--promo-text-light); margin-bottom: 1rem; }
.promo-callout-cta { display: inline-block; background-color: var(--promo-button-bg); color: white !important; padding: 0.6rem 1.2rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: background-color 0.2s ease; }
.promo-callout-cta:hover { background-color: var(--promo-button-hover-bg); color: white !important; }

.promo-sidebar-item { background: linear-gradient(to right, var(--promo-bg-main), var(--promo-bg-accent)); padding: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; }
.promo-sidebar-item-content { flex: 1; }
.promo-sidebar-item .promo-banner-badge { background-color: var(--promo-button-bg); }
.promo-sidebar-item-title { font-size: 1.25rem; color: var(--promo-text-dark); margin-bottom: 0.5rem; }
.promo-sidebar-item-description { font-size: 0.875rem; color: var(--promo-text-light); margin-bottom: 1rem; }
.promo-sidebar-item-image { width: 6rem; height: 6rem; border-radius: var(--radius); background-size: cover; background-position: center; flex-shrink: 0; }
.promo-sidebar-item .btn-sm.btn-secondary { background-color: var(--promo-button-bg); border-color: var(--promo-button-bg); }
.promo-sidebar-item .btn-sm.btn-secondary:hover { background-color: var(--promo-button-hover-bg); }

.promo-grid-container { margin: 2.5rem 0; }
.promo-grid-main-title { font-size: 1.75rem; margin-bottom: 1.5rem; text-align: center; color: var(--text-dark); font-family: 'Montserrat', sans-serif; font-weight: 600; }
.offers-grid-container .promo-grid-main-title { color: var(--promo-button-bg); }
.offers-grid-container .promo-grid-main-title::before { content: "⚡ "; }
.dresses-grid-container .promo-grid-main-title { color: var(--promo-dress-text-dark, #713f12); }
.dresses-grid-container .promo-grid-main-title::before { content: "👗 "; }
.hot-springs-grid-container .promo-grid-main-title { color: var(--primary); }
.hot-springs-grid-container .promo-grid-main-title::before { content: "♨️ "; }

.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.promo-grid.two-by-two { grid-template-columns: repeat(2, 1fr); }
.promo-grid.four-items,
.promo-grid.four-by-four { grid-template-columns: repeat(2, 1fr); } 

.promo-grid-item { text-decoration: none; color: inherit; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; background-color: white; display: flex; flex-direction: column; }
.promo-grid-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }

.promo-grid-item-image { /* This is a DIV acting as an image container, often with background-image */
    padding-top: 100%; /* Default 1:1 aspect ratio. Change per grid type if needed. */
    position: relative;
    background-size: cover;
    background-position: center center; /* Changed from center top for better general cropping */
    border-bottom: 1px solid var(--border-light);
    width: 100%; /* Responsive width */
    height: 0; /* Key for padding-top aspect ratio trick */
    overflow: hidden;
    display: block;
    background-repeat: no-repeat;
}

.dresses-grid .promo-grid-item-image, 
.hot-springs-grid .promo-grid-item-image { 
    padding-top: 125%; /* Taller aspect ratio 4:5 */
}
.offers-grid.two-by-two .promo-grid-item-image { 
    padding-top: 75%; /* Wider aspect ratio 4:3 */
}

.promo-grid-item-content { padding: 0.75rem; flex-grow: 1; display: flex; flex-direction: column; text-align: center; }
.promo-grid-item-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text-dark); line-height: 1.3; min-height: 2.2em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.promo-grid-item-price { font-size: 1rem; font-weight: 700; color: var(--promo-button-bg); margin-bottom: 0.25rem; margin-top: auto; }
.promo-grid-item-description { display: none; }
.offers-grid .promo-grid-item-price { color: var(--primary); }

.promo-see-all-link { text-align: center; margin-top: 1.5rem; margin-bottom: 1rem; }
.promo-see-all-link a {
    color: var(--primary); text-decoration: none; font-weight: 600;
    font-size: 0.9rem; padding: 0.5rem 1rem; border: 1px solid var(--primary);
    border-radius: var(--radius); transition: background-color 0.2s, color 0.2s;
    display: inline-block; 
    max-width: 90%;     
    overflow-wrap: break-word; 
    hyphens: auto;             
    white-space: normal;       
    line-height: 1.3;          
}
.promo-see-all-link a:hover { background-color: var(--primary); color: white; }

.promo-strip-container { margin: 2rem 0; }
.promo-strip-container .promo-grid-main-title { font-size: 1.4rem; margin-bottom: 1rem; text-align: left; }
.promo-strip.horizontal-strip { display: flex; overflow-x: auto; gap: 1rem; padding: 0.5rem 0.25rem 1rem 0.25rem; scrollbar-width: thin; scrollbar-color: var(--border) var(--background-alt); }
.promo-strip.horizontal-strip::-webkit-scrollbar { height: 8px; }
.promo-strip.horizontal-strip::-webkit-scrollbar-track { background: var(--background-alt); border-radius: 4px; }
.promo-strip.horizontal-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.promo-strip.horizontal-strip::-webkit-scrollbar-thumb:hover { background: var(--text-light); }
.promo-strip.horizontal-strip .promo-grid-item { min-width: 150px; max-width: 170px; flex: 0 0 auto; }
.promo-strip.horizontal-strip .promo-grid-item-image { padding-top: 100%; } /* Square aspect ratio for strip items */
.promo-strip.horizontal-strip .promo-grid-item-title { font-size: 0.75rem; min-height: 2em; }
.promo-strip.horizontal-strip .promo-grid-item-price { font-size: 0.9rem; }
.promo-strip.horizontal-strip .promo-grid-item-description { display: none; }

.sidebar-card.promo-sidebar-card .sidebar-card-image { height: 10rem; background-size: cover; background-position: center; }
.sidebar-card.promo-sidebar-card .btn-secondary.btn-block { background-color: var(--promo-button-bg); border-color: var(--promo-button-bg); }
.sidebar-card.promo-sidebar-card .btn-secondary.btn-block:hover { background-color: var(--promo-button-hover-bg); }

.sidebar-card.promo-sidebar-product-list .sidebar-card-title { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-dark); }
.promo-sidebar-product-item { display: flex; gap: 0.75rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }
.promo-sidebar-product-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.promo-sidebar-product-item-image-container { width: 4.5rem; height: 4.5rem; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; border: 1px solid var(--border-light); }
.promo-sidebar-product-item-image-container img { width: 100%; height: 100%; object-fit: cover; }
.promo-sidebar-product-item-info { display: flex; flex-direction: column; justify-content: center; flex-grow: 1; }
.promo-sidebar-product-item-info a { color: var(--text-dark); text-decoration: none; }
.promo-sidebar-product-item-info a:hover { color: var(--promo-button-bg); }
.promo-sidebar-product-item-info h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.promo-sidebar-product-item-price { font-size: 0.9rem; font-weight: 700; color: var(--promo-button-bg); }


/* --- Responsive Adjustments (Desktop Breakpoints) --- */
@media (min-width: 640px) {
    h1.article-title { font-size: 2.5rem; }
    .promo-banner-content { flex-direction: row; }
    .promo-banner-text { width: 60%; }
    .promo-banner-image { width: 40%; height: auto; }
    .cta-buttons { flex-direction: row; max-width: none; justify-content: center; }
}

@media (min-width: 768px) {
    /* Tablet Up */
    h1.article-title { font-size: 3rem; }
    .main-content { grid-template-columns: 2fr 1fr; }
    .article-content { order: 1; }
    .sidebar { order: 2; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }

    .promo-grid.four-items,
    .promo-grid.four-by-four {
        grid-template-columns: repeat(4, 1fr); /* Desktop shows 4 columns */
    }
    /* .promo-grid.two-by-two remains 2 columns as per its specific class or auto-fill */
}

@media (min-width: 1024px) {
    /* Desktop Navigation */
    .nav { /* This is the main nav container for desktop */
        display: flex !important; /* Ensure it's visible, overriding any display:none */
        position: static; /* Override fixed positioning from mobile */
        width: auto; height: auto; /* Override mobile dimensions */
        background-color: transparent; /* Override mobile background */
        box-shadow: none; /* Override mobile shadow */
        padding: 0; /* Override mobile padding */
        overflow-y: visible; /* Override mobile overflow */
        right: auto; /* Clear mobile positioning */
    }
    .nav-links { /* Styles for the UL within .nav */
        flex-direction: row; /* Desktop layout */
        gap: 1.5rem;
        /* Other desktop nav-links styles are from the unified block later */
    }
    .mobile-menu-btn { display: none !important; } /* Hide mobile button */
    .close-menu { display: none !important; } /* Hide mobile close button */
    .overlay { display: none !important; } /* Hide overlay */

    .footer-content { grid-template-columns: repeat(4, 1fr); }
}


/* --- Mobile Responsive Styles (Previously "Imported from mobile.css", now integrated and primary for mobile) --- */
@media screen and (max-width: 768px) { /* Max width for this block should be 767px if min-width: 768px is the next breakpoint, or adjust as needed. Assuming 768px is the breakpoint. */
    /* General Mobile Header Adjustments */
    .header-container {
        height: auto;
        padding: 10px; 
        position: relative; 
    }
    .logo {
        justify-content: flex-start; 
        flex-grow: 1; 
    }
    .logo span { /* Ensure logo text can shrink or wrap if needed */
        font-size: 1rem; /* Adjust as needed */
        white-space: normal; /* Allow wrapping */
    }
    .mobile-menu-btn {
        display: block; 
        z-index: 101; 
    }

    /* Container and Content */
    .container {
        padding: 0 10px; /* Ensure this matches hero-image negative margins */
        overflow-x: hidden; /* Prevent horizontal scroll on mobile */
    }
    .main-content {
        padding: 1rem 0;
        gap: 1.5rem;
    }

    .hero { padding: 1rem 0; }
    /* .hero .container { padding: 0 10px; } /* Container padding already applied */
    .article-title { 
        font-size: 1.75rem !important; 
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    .article-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
        font-size: 0.8rem;
    }
    .meta-item {
        margin-bottom: 5px;
    }
    .hero-image {
        margin: 0 -10px 1.5rem -10px; /* Extend to screen edges based on 10px container padding */
        width: calc(100% + 20px); /* Matches 2 * 10px container padding */
        border-radius: 0;
    }
    .hero-image img {
        border-radius: 0;
    }
    .image-caption {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    .breadcrumbs {
        flex-wrap: wrap;
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .activity-card {
        margin-bottom: 1.5rem;
    }
    .activity-card-content {
        padding: 1rem;
    }
    .activity-header {
        gap: 0.75rem;
    }
    .activity-number {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    .activity-title { 
        font-size: 1.25rem !important; 
        line-height: 1.3;
    }
    .activity-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .activity-image {
        border-radius: var(--radius);
        margin-bottom: 1rem;
    }
    .tips-container {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    .tips-header {
        font-size: 0.9rem;
    }
    .tips-list {
        padding-left: 1rem; 
    }
    .tip-item {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    /* Promo grids on mobile */
    .promo-grid-container .promo-grid.four-by-four,
    .promo-grid-container .promo-grid.two-by-two,
    .promo-grid-container .promo-grid.four-items {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important;
    }
    /* For default .promo-grid that isn't specifically .four-by-four etc. */
    .promo-grid-container .promo-grid {
        /* Default to 2 columns on mobile, unless overridden by more specific rules or smaller breakpoints */
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Adjust minmax for better fit */
        gap: 10px;
    }

    .promo-callout {
        padding: 1rem;
        margin: 1.5rem 0;
        font-size: 0.9rem;
    }
    .promo-loading-placeholder {
        min-height: 80px;
        font-size: 0.9rem;
    }
    .promo-grid-item {
        /* margin-bottom: 10px; /* Grid gap should handle this */
    }

    /* START FIX: Promo Grid Item Image - Make Responsive */
    .promo-grid-item-image {
        /* REMOVED fixed width/height and padding-top: 0 !important */
        /* width: 184px !important; */
        /* height: 180px !important; */
        /* padding-top: 0 !important; */

        /* RELY on base .promo-grid-item-image styles for width:100%, height:0 and padding-top for aspect ratio */
        /* The specific grid types (.dresses-grid, .offers-grid) will set their own padding-top for aspect ratio */

        /* Keep other useful properties if applicable (mostly for background images) */
        /* max-width: 100%; /* Base style width:100% should cover this */
        /* margin: 0 auto; /* Only useful if image element itself isn't 100% of its cell */
        /* background-size: cover !important; /* Already in base style */
        /* background-position: center top !important; /* Base style is center center, which is often better */
        /* overflow: hidden; /* Already in base style */
    }
    /* END FIX: Promo Grid Item Image */
    
    .promo-grid-item-title {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
        min-height: 2.1em; 
    }
    .promo-grid-item-price {
        font-size: 0.9rem;
    }
    .promo-grid-item-description {
        font-size: 0.75rem;
        margin-top: 0.25rem;
        line-height: 1.3;
    }
    .promo-grid-main-title {
        font-size: 1.25rem !important; 
        margin-bottom: 1rem;
        text-align: center;
    }
    .promo-see-all-link a {
        font-size: 0.85rem; 
        padding: 0.4rem 0.8rem;
        max-width: 100%; 
    }
    .promo-strip.horizontal-strip .promo-grid-item {
        min-width: 130px;
        max-width: 150px;
    }

    .footer {
        padding: 2rem 10px 1rem 10px;
    }
    .footer-column {
        margin-bottom: 1.5rem;
    }
    .cta-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    .cta-title { font-size: 1.25rem; }
    .cta-description { font-size: 0.9rem; }

    .sidebar-card {
        margin-bottom: 1.5rem;
    }
    .sidebar-card-content { padding: 1rem; }
    .sidebar-card.promo-sidebar-product-list .sidebar-card-title { font-size: 1.1rem; }
    .promo-sidebar-product-item-info h4 { font-size: 0.8rem; }
    .promo-sidebar-product-item-price { font-size: 0.85rem; }

    /* Stricter Mobile Breakpoint for Single Column Grids */
    @media screen and (max-width: 480px) {
        .promo-grid-container .promo-grid { 
            grid-template-columns: 1fr !important; /* All promo grids go to single column */
        }
        .activity-title {
            font-size: 1.1rem !important;
        }
        h1.article-title {
            font-size: 1.5rem !important;
        }
        /* START FIX: Promo Grid Item Image (Smaller Mobile) - Make Responsive */
        .promo-grid-item-image {
             /* REMOVED fixed width/height */
             /* width: 160px !important; */
             /* height: 156px !important; */
             /* RELY on base styles for responsiveness */
        }
        /* END FIX: Promo Grid Item Image (Smaller Mobile) */
        .promo-grid-item-title { font-size: 0.75rem; }
        .promo-grid-item-price { font-size: 0.85rem; }
        .logo span { font-size: 1rem; } /* Further adjust logo text size if needed */
    }
}

/* --- UNIFIED NAVIGATION STYLES (Formerly duplicated block, now primary) --- */
/* Base Nav link styling (applies to both mobile and desktop links if not overridden) */
.nav-link {
    color: #333; /* var(--text-dark) or var(--text-medium) could be used */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0; /* Default padding, might be overridden */
    position: relative; /* For underline effect */
}
.nav-link:hover {
    color: #4CAF50; /* var(--primary) could be used */
}
.nav-link:after { /* Underline effect */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4CAF50; /* var(--primary) could be used */
    transition: width 0.3s ease;
}
.nav-link:hover:after {
    width: 100%;
}

/* Desktop Nav specific styles (applied via @media min-width: 1024px further up) */
/* .nav for desktop is handled in the @media (min-width: 1024px) block */
/* .nav-links for desktop (inside .nav) */
@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        flex-direction: row; /* Ensure horizontal layout */
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 1.5rem; /* Spacing between desktop links */
    }
    .nav-link { /* Adjustments for desktop nav links */
        padding: 0.5rem 0; /* Matches default, confirm if different needed */
        font-size: 0.875rem; /* Typical desktop nav link size */
        font-weight: 500;
        color: var(--text-medium);
    }
    .nav-link:hover { color: var(--primary); }
}


/* Mobile Navigation Styles */
@media (max-width: 768px) { /* This should be max-width: 1023px if desktop nav starts at 1024px to avoid overlap or gaps if using exact breakpoints */
/* Or ensure the previous breakpoint is e.g. min-width: 769px */
/* For now, keeping it as 768px as per original structure. Consider changing to 1023px for clarity. */
    .nav { /* This is the sliding panel for mobile */
        position: fixed;
        top: 0;
        right: -100%; /* Initially off-screen */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff; /* var(--background) */
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 5rem 1.5rem 2rem; /* Top padding for close button, content padding */
        overflow-y: auto;
        z-index: 1000; /* Highest z-index for nav panel */
        transition: right 0.3s ease; /* Specific transition for sliding */
        display: block !important; /* Ensure it's block for positioning, overriding desktop flex */
    }
    
    .nav.active {
        right: 0; /* Slide in */
    }
    
    .nav-links { /* Styles for the UL within mobile .nav */
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 1rem; /* Spacing between mobile links */
    }
    
    .nav-link { /* Mobile specific link styling if needed */
        display: block; /* Make links full width for easier tapping */
        padding: 0.75rem 0;
        font-size: 1.1rem; /* Larger font for mobile */
        /* color: var(--text-dark); */ /* Already set by general .nav-link */
    }
    /* .mobile-menu-btn is handled by general mobile styles */
    /* .mobile-menu-btn:hover handled by general mobile styles */
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999; /* Below nav panel but above content */
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .close-menu { /* Styling for the X button inside the mobile nav panel */
        display: block; /* Ensure it's visible on mobile */
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: #333; /* var(--text-dark) */
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001; /* Above nav panel content if needed */
    }
}