/* =================================
   CSS VARIABLES & BOOTSTRAP OVERRIDES
   ================================= */

:root {
    /* Brand Colors */
    --cf-primary: #608000;          /* chardonnay-3 */
    --cf-primary-rgb: 96, 128, 0;   /* chardonnay-3-rgb */
    --cf-primary-light: #639700;    /* chardonnay-2 */
    --cf-primary-lighter: #def1b1;  /* chardonnay-1 */
    --cf-dark: #1e1e1e;             /* Eerie Black */
    --cf-focus-color: #639700;      /* Chardonnay 2 */
    --cf-focus-shadow: rgba(99, 151, 0, 0.25); /* Chardonnay 2 with opacity */
 
    /* Background Colors */
    --cf-bg-light: #FDF9ED;         /* champagne-1 */
    --cf-bg-accent: #f2e2c9;        /* champagne-2 */
    --cf-bg-dark: #1e1e1e;          /* eerie-black */
    
    /* Neutral Colors */
    --cf-gray-dark: #696969;        /* gray-dark */
    --cf-gray-medium: #c8c8c8;      /* gray-medium */
    --cf-gray-light: #e2e2e2;       /* gray-light */
    
    /* Rating Colors */
    --cf-star-color: #fff;          /* star-color */
    --cf-star-background: #fc0;     /* star-background */
    
    /* Transitions */
    --cf-transition: cubic-bezier(0.4, 0, 0, 1);  /* easing */
    
    /* Bootstrap Variable Overrides */
    --bs-primary: var(--cf-primary);
    --bs-primary-rgb: var(--cf-primary-rgb);
    --bs-secondary: var(--cf-primary-light);
    --bs-secondary-rgb: 99, 151, 0;
    --bs-body-font-family: 'Montserrat', sans-serif;
    --bs-body-font-size: 0.9375rem;
    --bs-border-radius: 0.5rem;
    --bs-border-radius-sm: 0.375rem;
    --bs-gray-dark: var(--cf-gray-dark);
    --bs-border-color: var(--cf-gray-light);
    --bs-light-rgb: 253, 249, 237;
    --bs-light: #FDF9ED;
    --bs-dark: var(--cf-dark);
    --bs-dark-rgb: 30, 30, 30;
}

/* =================================
   BASE STYLES
   ================================= */

body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Scroll margin for anchors */
#featured, #gifts, #membership, #special {
    scroll-margin-top: 60px; 
}

/* =================================
   TOPBAR COMPONENT
   ================================= */

.topbar {
    background-color: var(--cf-bg-light);
    color: #D6336C;
    font-size: 0.875rem;
    padding: 0.75rem 0;
}

.topbar a {
    color: #D6336C;
    text-decoration: none;
    transition: color 0.2s var(--cf-transition);
}

.topbar a:hover,
.topbar a:focus {
    color: #A61E4D;
}

.topbar-pink   { background-color: #FFE6EA; color: #9C1C2D; }
.topbar-xmas   { background: linear-gradient(90deg, #165b33 0%, #1a5c2e 50%, #c41e3a 100%); color: #fff; }
.topbar-gold   { background-color: #1a1a2e; color: #ffd700; }
.topbar-summer { background: '#608000', color: '#ffffff' }

/* =================================
   NAVIGATION COMPONENT
   ================================= */

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --bs-navbar-padding-y: 0.1rem;
    --bs-navbar-color: var(--bs-gray-800);     
    --bs-navbar-hover-color: var(--cf-primary); 
    --bs-navbar-nav-link-padding-x: 1rem;
}

.navbar .nav-link {
    font-size: 1rem;
    transition: color 0.2s var(--cf-transition);
}

.navbar .nav-link:hover {
    color: var(--cf-primary) !important;
}

.navbar .nav-link.active {
    position: relative;
    font-weight: 600;
    color: var(--cf-primary);
}

.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: -2px;
    height: 2px;
    background-color: var(--cf-primary);
    border-radius: 1px;
}

/* Navigation Icons */
.nav-icon {
    color: var(--cf-gray-dark);
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.2s var(--cf-transition);
    display: flex;
    align-items: center;
}

.nav-icon:hover {
    color: var(--cf-primary);
}

.nav-icon span {
    font-size: 1rem;  
}

.nav-icon .badge {
    font-size: 0.65rem;
    padding: 0.25em 0.45em;
    min-width: 1.2em;
    height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -25%); 
}

/* =================================
   HERO SECTIONS
   ================================= */

.hero-section {
    position: relative;
    min-height: 600px;
    background-color: var(--bs-dark);
    display: flex;
    align-items: center;
}

.page-hero {
    position: relative;
    min-height: 400px;
    background-color: var(--bs-dark);
    display: flex;
    align-items: center;
}

.page-hero-sm {
    min-height: auto;
}

.page-hero-sm .hero-content {
    padding: 2rem 0;
    max-width: 100%;
}

.hero-background,
.page-hero .hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay,
.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.7) 0%, 
        rgba(0,0,0,0.4) 50%, 
        rgba(0,0,0,0.2) 100%
    );
}

.hero-content,
.page-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.page-hero .hero-content {
    padding: 4rem 0;
}

/* =================================
   BUTTON STYLES
   ================================= */

.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.2s var(--cf-transition),
                border-color 0.2s var(--cf-transition),
                color 0.2s var(--cf-transition),
                box-shadow 0.2s var(--cf-transition);
}

/* Primary Button States */
.btn-primary {
    background-color: var(--cf-primary);
    border-color: var(--cf-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--cf-primary-light);
    border-color: var(--cf-primary-light);
}

.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--cf-primary-light) !important;
    border-color: var(--cf-primary-light) !important;
    color: white !important;
}

/* Outline Primary Button States */
.btn-outline-primary {
    border-color: var(--cf-primary);
    color: var(--cf-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--cf-primary);
    border-color: var(--cf-primary);
    color: white;
}

.btn-outline-primary:active {
    background-color: var(--cf-primary-light) !important;
    border-color: var(--cf-primary-light) !important;
    color: white !important;
}

/* Disabled primary button — Bootstrap's :disabled state otherwise reverts to its
   default blue; keep it a neutral on-brand grey so it reads as inactive. */
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--cf-gray-medium);
    border-color: var(--cf-gray-medium);
    color: var(--cf-gray-dark);
    opacity: 1;
}

/* Per-country order notice (minimum bottles / delivery time) */
.cf-country-notice {
    background-color: var(--cf-bg-accent);
    border: 1px solid var(--cf-primary);
    border-left-width: 4px;
    color: var(--cf-dark);
}

.cf-country-notice i {
    color: var(--cf-primary);
}

/* Secondary Button States */
.btn-secondary:active,
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active,
.show > .btn-secondary.dropdown-toggle {
    background-color: #558300 !important;
    border-color: #558300 !important;
    color: white !important;
}

/* Button Focus States */
.btn:focus,
.btn-primary:focus,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem var(--cf-focus-shadow);
    border-color: var(--cf-primary-light);
}

/* Product Card Button Styles */
.product-card .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-card .btn-outline-primary {
    padding: 0.5rem;
    min-width: 2.25rem;
}

.product-card .btn i {
    font-size: 1rem;
}

/* Gift Card Buttons */
.gift-btn {
    width: 50%;
}

/* =================================
   FORM COMPONENTS
   ================================= */

.form-control:focus,
.form-select:focus {
    border-color: var(--cf-focus-color) !important;
    box-shadow: 0 0 0 0.25rem var(--cf-focus-shadow) !important;
}

.input-group .btn:focus {
    box-shadow: none;
}

.form-check-input:checked {
    background-color: var(--cf-primary);
    border-color: var(--cf-primary);
}

.form-check-input:focus {
    border-color: var(--cf-primary);
    box-shadow: 0 0 0 0.25rem var(--cf-focus-shadow);
}

.invalid-feedback {
    display: block;
}

/* Cart Item Select Styling */
.cart-item select {
    border-color: var(--cf-gray-light);
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.cart-item select:focus {
    border-color: var(--cf-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--cf-primary-rgb), 0.25);
}

/* =================================
   RATING COMPONENTS
   ================================= */

.testimonial-stars {
    color: var(--cf-star-background);
}

.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 1.5rem; 
    line-height: 1;
}

.stars::before {
    content: "★★★★★";
    letter-spacing: -1px;
    background: linear-gradient(90deg, #ffc107 var(--percent), var(--cf-gray-light) var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Rating Slider Components */
.rating-slider-container {
    position: relative;
    padding: 0 20px;
    margin-bottom: 30px;
}

.form-range {
    margin-bottom: 30px;
}

.form-range::-webkit-slider-thumb {
    background-color: var(--cf-primary);
    width: 20px;
    height: 20px;
}

.form-range::-moz-range-thumb {
    background-color: var(--cf-primary);
    width: 20px;
    height: 20px;
}

.rating-ticks {
    position: relative;
    width: 100%;
    margin-top: -20px;
    height: 20px;
}

.tick {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
}

.tick span {
    display: inline-block;
    width: 20px;
    font-size: 0.8rem;
}

.rating-labels {
    position: relative;
    width: 100%;
    margin-top: 5px;
    height: 25px;
}

.label {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.8rem;
    color: var(--cf-gray-dark);
}

/* Preference Slider Colors */
.preference-dislike::-webkit-slider-thumb,
.preference-dislike::-moz-range-thumb {
    background-color: #dc3545;
}

.preference-neutral::-webkit-slider-thumb,
.preference-neutral::-moz-range-thumb {
    background-color: #6c757d;
}

.preference-like::-webkit-slider-thumb,
.preference-like::-moz-range-thumb {
    background-color: var(--cf-primary);
}

.preference-item {
    transition: all 0.2s ease;
}

.preference-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

/* =================================
   PRODUCT COMPONENTS
   ================================= */

.product-card {
    height: 100%;
    transition: transform 0.3s var(--cf-transition), 
                box-shadow 0.3s var(--cf-transition);
    background: white;
    border: 1px solid var(--cf-gray-light);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-card:hover .product-thumb img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.product-card .card-footer {
    padding: 0.75rem;
}

.product-thumb {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: -2rem;
    background: var(--cf-primary);
    color: white;
    padding: 0.25rem 2rem;
    transform: rotate(-45deg);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1;
}

.product-content {
    padding: 1.25rem;
}

.product-house {
    color: var(--bs-gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--bs-gray-800);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--cf-bg-light);
    color: var(--cf-primary);
    border: 1px solid var(--cf-primary-lighter);
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.gallery-preview {
    position: relative;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--cf-gray-light);
}

.product-gallery .gallery-preview img {
    max-height: 450px;
    width: auto;
    margin: 0 auto;
    display: block;
}

.gallery-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 600;
    z-index: 1;
}

.gallery-thumbnails .thumbnail-item {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s var(--cf-transition);
    border: 1px solid var(--cf-gray-light);
    border-radius: 0.375rem;
    overflow: hidden;
}

.gallery-thumbnails .thumbnail-item:hover {
    opacity: 1;
}

.thumbnail-item.active {
    opacity: 1;
    border-color: var(--cf-primary);
}

/* =================================
   GIFT CARD COMPONENTS
   ================================= */

.gift-card {
    height: 100%;
    background: white;
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gift-card:hover {
    transform: translateY(-5px);
}

.gift-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.gift-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gift-card:hover .gift-image img {
    transform: scale(1.1);
}

.gift-content {
    position: relative;
    padding: 2rem;
    margin-top: -2rem;
    background: white;
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
}

.gift-section {
    background-color: var(--cf-bg-light);
}

.gift-icon {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--cf-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =================================
   CART COMPONENTS
   ================================= */

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cart-item {
    transition: opacity 0.3s var(--cf-transition),
                transform 0.3s var(--cf-transition);
}

.cart-item.removing {
    opacity: 0;
    transform: translateX(-100%);
}

.cart-empty {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--cf-gray-medium);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-cart-icon {
    animation: float 3s ease-in-out infinite;
}

/* =================================
   SUBSCRIPTION COMPONENTS
   ================================= */

.subscription-section {
    position: relative;
    background: var(--cf-bg-light);
}

.subscription-badge {
    display: inline-block;
    background: var(--cf-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.subscription-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.subscription-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: var(--cf-bg-accent);
    color: var(--cf-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* =================================
   TABLE COMPONENTS
   ================================= */

.table thead th {
    background-color: var(--cf-bg-light) !important;
}

.table-hover > tbody > tr:hover > td {
    background-color: var(--cf-bg-light) !important;
    background-image: none !important;
    filter: none !important;
    opacity: 1 !important;
    --bs-table-hover-bg: var(--cf-bg-light) !important;
}

/* =================================
   ACCORDION COMPONENTS
   ================================= */

.accordion-button:not(.collapsed) {
    background-color: var(--cf-primary-lighter) !important;
    color: var(--cf-primary) !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem var(--cf-focus-shadow) !important;
    border-color: var(--cf-focus-color) !important;
}

.accordion-button {
    font-weight: 600;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

/* =================================
   TAB COMPONENTS
   ================================= */

.nav-tabs {
    border-bottom: 2px solid var(--cf-gray-light);
    gap: 1rem;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 0.75rem 0.25rem;
    color: var(--cf-gray-dark);
    font-weight: 500;
    background: none;
}

.nav-tabs .nav-link:hover {
    border-color: var(--cf-primary);
}

.nav-tabs .nav-link.active {
    color: var(--cf-primary);
    border-bottom-color: var(--cf-primary);
}

/* =================================
   PAGINATION COMPONENTS
   ================================= */

.page-link {
    color: var(--cf-primary);
    border-color: var(--cf-gray-light);
}

.page-item.active .page-link {
    background-color: var(--cf-primary);
    border-color: var(--cf-primary);
}

.page-link:hover {
    color: var(--cf-primary-light);
    background-color: var(--cf-primary-lighter);
    border-color: var(--cf-primary-light);
}

/* =================================
   FOOTER COMPONENT
   ================================= */

.footer {
    background: var(--cf-bg-dark) url("img/patroon.7a14f74fff69.svg") repeat left top;
}

.list-unstyled a.text-white {
    transition: color 0.3s ease;
}

.list-unstyled a.text-white:hover {
    color: var(--cf-primary-lighter) !important; 
}

/* =================================
   ICON COMPONENTS
   ================================= */

.fact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cf-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pairing-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--cf-bg-light);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cf-primary);
}

/* =================================
   CARD COMPONENTS
   ================================= */

.pairing-card {
    transition: transform 0.2s var(--cf-transition);
}

.pairing-card:hover {
    transform: translateY(-2px);
}

.card-header-themed {
    background-color: var(--cf-primary-lighter);
    border-bottom: 1px solid rgba(var(--cf-primary-rgb), 0.2);
    color: var(--bs-gray-800);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.counter-item {
    transition: transform 0.3s var(--cf-transition);
}

.counter-item:hover {
    transform: translateY(-5px);
}

/* =================================
   BADGE COMPONENTS
   ================================= */

.badge-corner {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    z-index: 1;
}

.badge-label {
    position: absolute;
    top: 25px;
    left: -35px;
    transform: rotate(-45deg);
    background-color: var(--cf-primary);
    color: white;
    padding: 5px 40px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    width: 170px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge .fas {
    font-size: 0.75rem;
}

.badge a:hover {
    opacity: 0.8;
}

/* =================================
   DIVIDER COMPONENTS
   ================================= */

.divider-top {
    position: relative;
}

.divider-top:before {
    width: 50px;
    height: 80px;
    position: absolute;
    display: inline-block;
    content: '';
}

.divider-top.right:before {
    top: -80px;
    right: 8px;
    -webkit-mask: url("img/divider-top-right.a423f5a5c5e7.svg") no-repeat 50% 50%;
    mask: url("img/divider-top-right.a423f5a5c5e7.svg") no-repeat 50% 50%;
    -webkit-mask-size: cover;
    mask-size: cover;
}

.divider-top.left:before {
    top: -80px;
    left: 8px;
    -webkit-mask: url("img/divider-top-left.0fe2919f8f10.svg") no-repeat 50% 50%;
    mask: url("img/divider-top-left.0fe2919f8f10.svg") no-repeat 50% 50%;
    -webkit-mask-size: cover;
    mask-size: cover;
}

.divider-top.green:before {
    background-color: var(--cf-primary);
}

.divider-top.champagne:before {
    background-color: var(--cf-secondary);
}

/* =================================
   NAVIGATION COMPONENTS
   ================================= */

.fan-nav ul li {
    transition: all 0.2s ease;
}

.fan-nav ul li:hover {
    background-color: rgba(var(--cf-primary-rgb), 0.1);
}

.fan-nav ul li.active {
    background-color: rgba(var(--cf-primary-rgb), 0.15);
    border-left: 3px solid var(--cf-primary);
}

.fan-nav ul li.active a {
    padding-left: calc(1rem - 3px);
}

.fan-nav ul li.active .icon-container {
    margin-left: -3px;
}

/* =================================
   UTILITY CLASSES
   ================================= */

.bg-champagne {
    background-color: var(--cf-bg-light);
}

.text-champagne {
    color: var(--cf-primary);
}

.bg-primary-light {
    background-color: var(--cf-primary-light);
}

.bg-primary-lighter {
    background-color: var(--cf-primary-lighter);
}

.bg-accent {
    background-color: var(--cf-bg-accent);
}

.asterix {
    color: var(--cf-primary);
    margin-left: 2px;
}

.icon-container {
    width: 20px;
    display: inline-block;
    text-align: center;
}

.user-avatar {
    font-weight: 600;
}

.champagne-intro {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--cf-gray-dark);
    max-width: 600px;
}

.champagne-facts {
    font-size: 0.85rem;
}

.food-pairings .pairing-list {
    color: var(--cf-gray-dark);
}

address {
    font-style: normal;
    line-height: 1.6;
}

.village-facts .list-unstyled li {
    display: flex;
    align-items: flex-start;
}

.village-facts .list-unstyled li i {
    margin-top: 0.25rem;
    min-width: 20px;
}

.village-image img {
    min-height: 400px;
}

/* Sticky positioning */
.sticky-lg-top {
    z-index: 990;
}

@media (min-width: 992px) {
    .order-summary.sticky-lg-top {
        top: 6rem;
    }
}

/* =================================
   ERROR PAGE COMPONENTS
   ================================= */

.error-page {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--cf-dark);
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.error-header {
    color: var(--cf-primary);
    border-bottom: 2px solid var(--cf-primary);
    padding-bottom: 10px;
}

.error-meta {
    background-color: #f5f5f5;
    border-left: 5px solid var(--cf-primary);
    padding: 10px;
    margin-bottom: 20px;
}

.error-traceback {
    background-color: #f5f5f5;
    border-left: 5px solid var(--cf-primary-lighter);
    padding: 10px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* =================================
   ANIMATIONS
   ================================= */

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animation-delay-500 {
    animation-delay: 0.5s;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* =================================
   RESPONSIVE BREAKPOINTS
   ================================= */

/* Large devices and down (≤991.98px) */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 500px;
    }
    
    .gift-image {
        height: 200px;
    }
    
    .subscription-content {
        padding: 3rem 0;
    }

    .nav-icon span {
        display: none;
    }

    .fact-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .village-image img {
        min-height: 300px;
    }
    
    .village-facts .list-unstyled li {
        margin-bottom: 0.75rem;
    }
    
    /* Hide active nav-link underline on mobile */
    .navbar .nav-link.active::after {
        display: none;
    }
    
    /* Make active item bold instead */
    .navbar .nav-link.active {
        font-weight: 700;
    }
}

/* Medium devices and down (≤767.98px) */
@media (max-width: 767.98px) {
    .hero-heading {
        font-size: 2.5rem;
    }
    
    .hero-subheading {
        font-size: 1.125rem;
    }
    
    .page-hero .hero-content {
        padding: 3rem 0;
    }
    
    .gift-card {
        margin-bottom: 2rem;
    }
    
    .village-image img {
        min-height: 250px;
    }
    
    .champagne-facts {
        font-size: 0.85rem;
    }
    
    .preference-item .row .col-md-7 {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .rounded-circle {
        width: 45px !important;
        height: 45px !important;
    }
    
    .product-info .btn {
        width: 100% !important;
    }
}

/* Small devices and down (≤576px) */
@media (max-width: 576px) {
    .gift-btn {
        width: 100% !important;
    }
   
    .feature-icon {
        min-width: 50px;
        flex-shrink: 0;
        aspect-ratio: 1;
    }
    
    .subscription-feature {
        margin-bottom: 1.5rem;
    }
    
    .village-facts .list-unstyled li {
        margin-bottom: 0.75rem;
    }
}

