/* End of Year Sale 2025 - Blueprint Theme */
.endyear-2025 {
    /* Blueprint Theme Variables */
    --bp-bg-main: #E6F0FA;
    /* Light blue paper */
    --bp-bg-grid: #D0E0F0;
    /* Grid lines color */
    --bp-ink-primary: #003366;
    /* Dark blue ink */
    --bp-ink-secondary: #0055AA;
    /* Lighter blue ink for details */
    --bp-highlight: #FFFFFF;
    /* Highlighting space */
    --bp-font-tech: 'Courier New', Courier, monospace;
    /* Technical font */
    --bp-font-heading: 'acumin-pro', sans-serif;
    /* Bold headings */

    /* Reset & Base Styles */
    background-color: var(--bp-bg-main);
    color: var(--bp-ink-primary);
    font-family: var(--bp-font-tech);
    min-height: 100vh;
    width: 100%;
    overflow: visible !important;
    /* Fixed: overflow hidden/clip breaks sticky */
    position: relative;

    /* Isometric Grid Background Pattern (SVG for sharpness) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='29'%3E%3Cpath d='M25 0 L50 14.5 L25 29 L0 14.5 Z' fill='none' stroke='%23D0E0F0' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 50px 29px;
}

.endyear-2025 *,
.endyear-2025 *::before,
.endyear-2025 *::after {
    box-sizing: border-box;
}

/* Ensure body allows sticky children on this template */
body.page-template-page-endyear2025 {
    overflow: visible !important;
}

.endyear-2025 .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Typography */
.endyear-2025 h1,
.endyear-2025 h2,
.endyear-2025 h3,
.endyear-2025 h4 {
    font-family: var(--bp-font-heading);
    /* Or a sketch font if available */
    font-weight: 700;
    margin: 0;
    line-height: .9;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.endyear-2025 p {
    font-family: var(--bp-font-tech);
    margin: 10px 0 0;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.endyear-2025 .fine-print {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
}

.endyear-2025 .big-text {
    font-size: 4rem;
    color: transparent;
    -webkit-text-stroke: 2px var(--bp-ink-primary);
    /* Outline text style */
    position: relative;
    transition: color 0.6s ease-in-out;
}

.endyear-2025 .big-text.active {
    color: white;
}

/* Fill effect for big text (sketchy fill simulation) */
.endyear-2025 .big-text::before {
    content: attr(data-text);
    /* Needs javascript or manual duplication, or just simple fill */
    position: absolute;
    top: 3px;
    left: 3px;
    color: rgba(0, 51, 102, 0.1);
    z-index: -1;
}

/* Hero Section */
.endyear-2025 .hero-section {

    border-bottom: 2px solid var(--bp-ink-primary);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
}

.endyear-2025 .hero-full-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;

}

/* Countdown Timer */
.endyear-2025 .countdown-section {
    padding: 30px 0;
    border-bottom: 2px solid var(--bp-ink-primary);
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
}

.endyear-2025 #countdown-label {
    margin-bottom: 15px;
    font-size: 1.5em;
    font-family: var(--bp-font-tech);
    font-weight: bold;
}

.endyear-2025 .countdown-timer {
    display: inline-flex;
    gap: 20px;
    align-items: center;
}

.endyear-2025 .time-block span {
    font-size: 3rem;
    font-family: var(--bp-font-heading);
    color: var(--bp-ink-primary);
    -webkit-text-stroke: 1px var(--bp-ink-primary);
}

.endyear-2025 .time-block small {
    display: block;
    font-size: 0.8em;
    font-family: var(--bp-font-tech);
    font-weight: bold;
}

.endyear-2025 .separator {
    font-size: 2rem;
    margin-top: -20px;
    font-weight: bold;
}

/* Navigation */
.endyear-2025 .sections-nav {
    position: sticky;
    top: 62px;
    /* Sticks below main meganavbar */
    z-index: 100;
    background: rgba(230, 240, 250, 0.85);
    border-bottom: 2px solid var(--bp-ink-primary);
    padding: 15px 0;
}

/* Adjust top when main nav scrolls/collapses if applicable */
.meganavbar--scrolled+.endyear-2025 .sections-nav {
    top: 62px;
}


.endyear-2025 .sections-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.endyear-2025 .sections-nav a {
    text-decoration: none;
    background: rgba(230, 240, 250, 1);
    color: var(--bp-ink-primary);
    font-family: var(--bp-font-tech);
    font-weight: bold;
    text-transform: uppercase;
    font-size: .95em;
    padding: 8px 12px;
    overflow: hidden;
    border-radius: 1px;
    border: 2px solid var(--bp-ink-primary);
    transition: 0.3s;
}

.endyear-2025 .sections-nav a:active,
.endyear-2025 .sections-nav a:focus {
    color: var(--bp-ink-primary) !important;

}

.endyear-2025 .sections-nav a.active {
    border-color: var(--bp-ink-secondary);
    background: var(--bp-ink-secondary);
    color: rgba(255, 255, 255, 1) !important;
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(0, 85, 170, 0.3);
}

@media (hover: hover) {
    .endyear-2025 .sections-nav a:hover {
        border-color: var(--bp-ink-secondary);
        background: var(--bp-ink-secondary);
        color: rgba(255, 255, 255, 1) !important;
        border-radius: 1px;
        box-shadow: 0 0 10px rgba(0, 85, 170, 0.3);
    }
}


/* Offer Grid (Bento) */
.endyear-2025 .offer-grid {
    padding: 60px 0;
    background: transparent;
    scroll-margin-top: 140px;
}

.endyear-2025 .bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
}

.endyear-2025 .bento-grid::after,
.endyear-2025 .bento-grid::before {
    content: none;
}

.endyear-2025 .bento-item {
    background: #fff;
    border: 2px solid var(--bp-ink-primary);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-shadow: 5px 5px 0px rgba(0, 51, 102, 0.2);
    transition: 0.3s;
    overflow: hidden;
}

.endyear-2025 .bento-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px rgba(0, 51, 102, 0.3);
}

/* Inner "Sketch" border effect using pseudo-elements */
.endyear-2025 .bento-item::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid var(--bp-ink-secondary);
    pointer-events: none;
    opacity: 0.5;
}

/* Content Alignment */
.endyear-2025 .centered-text {
    text-align: center;
    align-items: center;
}

/* Specific Cell Layouts */

/* Specific Cell Layouts (Desktop) */
.endyear-2025 .discount-deal {
    grid-column: span 6;
}

.endyear-2025 .shipping-deal {
    grid-column: span 6;
}

.endyear-2025 .rewards-deal {
    grid-column: span 4;
}

.endyear-2025 .gift-deal {
    grid-column: span 4;
}

.endyear-2025 .date-deal {
    grid-column: span 4;
}

/* Styles for Text inside boxes */
.endyear-2025 .big-text {
    line-height: 0.9;
    margin: 10px 0;
    font-size: clamp(3.5rem, 6vw, 7rem);
}

.endyear-2025 .shipping-deal .big-text {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
}

/* Trace Border Animation (Blue) */
.endyear-2025 .trace-border {
    position: absolute;
    background: var(--bp-ink-primary);
    z-index: 10;
    transition: all 0.6s ease-out;
}

.endyear-2025 .trace-border.top {
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
}

.endyear-2025 .trace-border.right {
    top: 0;
    right: 0;
    width: 3px;
    height: 0;
}

.endyear-2025 .trace-border.bottom {
    bottom: 0;
    right: 0;
    height: 3px;
    width: 0;
}

.endyear-2025 .trace-border.left {
    bottom: 0;
    left: 0;
    width: 3px;
    height: 0;
}

.endyear-2025 .bento-item.in-view .trace-border.top {
    width: 100%;
    transition-delay: 0s;
}

.endyear-2025 .bento-item.in-view .trace-border.right {
    height: 100%;
    transition-delay: 0.2s;
}

.endyear-2025 .bento-item.in-view .trace-border.bottom {
    width: 100%;
    transition-delay: 0.4s;
}

.endyear-2025 .bento-item.in-view .trace-border.left {
    height: 100%;
    transition-delay: 0.6s;
}

/* Best Sellers & Exclusive Bundles */
.endyear-2025 .featured-items {
    padding: 80px 0;
    scroll-margin-top: 140px;
}

.endyear-2025 .section-title {
    font-size: 3rem;
    text-align: center;
    -webkit-text-stroke: 2px var(--bp-ink-primary);
    color: transparent;
    /* Outline effect */
    margin-bottom: 0px;
}

.endyear-2025 .section-title::before {
    content: attr(data-text);
    /* Fallback or use JS to inject for fill */
    /* easier to just make it solid dark blue */
    content: none;
}

.endyear-2025 .featured-items .big-text {
    text-align: center;
}

.endyear-2025 .section-subtitle {
    text-align: center;
    font-family: var(--bp-font-tech);
    margin-bottom: 50px;
    font-size: 1.2em;
    color: var(--bp-ink-secondary);
}

/* Products styling */
.endyear-2025 ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0 !important;
    padding: 0 !important;
}

.endyear-2025 ul.products::before,
.endyear-2025 ul.products::after {
    display: none !important;
}

.endyear-2025 ul.products li.product {
    background: #fff;
    border: 2px solid var(--bp-ink-primary);
    padding: 20px;
    width: 100% !important;
    margin: 0;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    text-align: center;
}

.endyear-2025 ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
}

.endyear-2025 ul.products li.product img {
    margin: 0 auto 15px;
    filter: contrast(1.1);
    /* Slight pop */
}

.endyear-2025 ul.products li.product h2 {
    font-size: 1rem;
    font-family: var(--bp-font-tech);
    line-height: 1.3;
    min-height: 2.6em;
    /* 2 lines */
    margin-bottom: 10px;
}

.endyear-2025 ul.products li.product .price {
    color: var(--bp-ink-primary);
    font-weight: bold;
    font-family: var(--bp-font-heading);
    font-size: 1.2rem;
}

.endyear-2025 ul.products li.product .button {
    margin-top: 15px;
    display: inline-block;
    border: 2px solid var(--bp-ink-primary);
    background: transparent;
    color: var(--bp-ink-primary);
    font-family: var(--bp-font-tech);
    text-transform: uppercase;
    font-weight: bold;
    padding: 8px 20px;
    transition: 0.3s;
}

.endyear-2025 ul.products li.product .button:hover {
    background: var(--bp-ink-primary);
    color: #fff;
}

/* Exclusive Bundles Section */
.endyear-2025 .exclusive-bundles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.endyear-2025 .bundle-card {
    background: #fff;
    border: 2px solid var(--bp-ink-primary);
    padding: 20px;
    position: relative;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.endyear-2025 .bundle-card a {
    text-decoration: none;
    color: inherit;
}

.endyear-2025 .bundle-image-container {
    position: relative;
    background: var(--bp-bg-grid);
    padding: 20px;
    border: 1px solid var(--bp-bg-grid);
    margin-bottom: 20px;
}

.endyear-2025 .bundle-image-container img.main-product-image {
    width: 100%;
    height: auto;
    display: block;
}

.endyear-2025 .free-gift-bubble {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background: #fff;
    border: 2px solid var(--bp-ink-primary);
    border-radius: 50%;
    overflow: hidden;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.endyear-2025 .free-gift-bubble img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.endyear-2025 .deal-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--bp-ink-primary);
    color: #fff;
    padding: 5px 10px;
    font-family: var(--bp-font-tech);
    font-size: 0.8em;
    font-weight: bold;
}

.endyear-2025 .bundle-title {
    font-size: 1.1em;
    font-family: var(--bp-font-tech);
    border-bottom: 1px dashed var(--bp-ink-primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.endyear-2025 .bundle-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.endyear-2025 .bundle-price {
    font-size: 1.2em;
    font-weight: bold;
    font-family: var(--bp-font-heading);
}

.endyear-2025 .gift-value-tag {
    font-size: 0.9em;
    color: var(--bp-ink-secondary);
}

.endyear-2025 .btn-shop-bundle {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--bp-ink-primary);
    color: #fff;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.2s;
}

.endyear-2025 .btn-shop-bundle:hover {
    background: var(--bp-ink-secondary);
}


/* Responsive */
@media (max-width: 1250px) {
    .endyear-2025 .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }

    .endyear-2025 .discount-deal,
    .endyear-2025 .shipping-deal,
    .endyear-2025 .rewards-deal,
    .endyear-2025 .gift-deal {
        grid-column: span 1;
    }

    .endyear-2025 .date-deal {
        grid-column: span 2;
    }

    .endyear-2025 ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    .endyear-2025 .exclusive-bundles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .endyear-2025 .big-text {
        -webkit-text-stroke: 1.5px var(--bp-ink-primary);
    }

    /* Scrollable Navigation on Tablet/Mobile */
    .endyear-2025 .sections-nav .container {
        padding: 0;
        max-width: none;
    }

    .endyear-2025 .sections-nav ul {
        justify-content: center;
        overflow-x: auto;
        padding: 5px 20px;
        gap: 15px;
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .endyear-2025 .sections-nav ul::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari and Opera */
    }

    .endyear-2025 .sections-nav a {
        white-space: nowrap;
        font-size: 0.95em;
        padding: 6px 10px;
        scroll-snap-align: center;
    }
}

@media (max-width: 768px) {
    .endyear-2025 .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .endyear-2025 ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .endyear-2025 .exclusive-bundles-grid {
        grid-template-columns: 1fr;
    }

    .endyear-2025 .hero-section {
        padding: 30px 0;
    }

    .endyear-2025 .container {
        padding: 0 20px;
    }

    .endyear-2025 .big-text {
        -webkit-text-stroke: 1px var(--bp-ink-primary);
    }

    .endyear-2025 .sections-nav ul {
        justify-content: flex-start;
    }

    /* Tighten up navigation on very small screens */
    .endyear-2025 .sections-nav a {
        font-size: 0.85em;
        padding: 6px 10px;
    }
}

/* Expandable Grid Logic - Nth Child Method */
/* Initially hide items 13+ (12 items visible) */
.endyear-2025 .expandable-grid:not(.expanded) ul.products li.product:nth-child(n+13) {
    display: none !important;
}

/* Bundles Grid - Limit 6 */
.endyear-2025 .expandable-grid:not(.expanded) .bundle-card:nth-child(n+7) {
    display: none !important;
}

.endyear-2025 .view-more-container {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.endyear-2025 .btn-view-more {
    background: var(--bp-ink-primary);
    color: #fff;
    border: 2px solid var(--bp-ink-primary);
    padding: 15px 40px;
    font-weight: bold;
    font-family: var(--bp-font-tech);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.endyear-2025 .btn-view-more:hover {
    background: var(--bp-ink-secondary);
    border-color: var(--bp-ink-secondary);
    color: #fff;
}