:root {
    --primary-color: #3D6E8E;
    /* Blue Button Color */
    --secondary-color: #22596A;
    /* Teal/Navy Headings */
    --accent-color: #F2EFEC;
    /* Beige Background Accent */
    --text-color: #000000;
    /* Body Text */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--secondary-color);
}

/* Navbar */
.navbar-custom {
    background-color: #fff;
    /* White Background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    /* Border top like announcement bar if needed, or just keep clean */
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    margin-right: 1rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    /* Adjust as needed, around 800px from analysis */
    min-height: 600px;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    /* Changed from center to flex-end */
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-bottom: 80px;
    /* Added padding to lift it off the edge */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0.6;
    /* Dark overlay effect via opacity or separate overlay div */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0px;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', var(--font-primary);
    /* Ensure Poppins is loaded or fallback */
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #fff;
    font-family: 'Poppins', var(--font-primary);
}

.btn-hero {
    background-color: #3D6E8E;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    background-color: #2c546e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(61, 110, 142, 0.4);
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #2c546e;
    /* Darker Blue */
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-custom {
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    background: transparent;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Product Card */
.product-card {
    border: none;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
    /* User requested full width image, reducing shadow might look cleaner or keeping it. Keeping for now but removing internal padding */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 300px;
    /* Increased height for better visibility */
    object-fit: contain;
    /* or cover if they want crop, but contain is safer for products */
    padding: 0;
    /* REMOVED PADDING */
    background: #fff;
    display: block;
}

.product-body {
    padding: 20px;
    text-align: left;
    /* ALIGN LEFT */
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
    min-height: auto;
    /* Remove fixed height constraint if not needed, or keep for alignment */
}

.product-price {
    color: #000000;
    /* BLACK COLOR */
    font-weight: 400;
    /* REGULAR WEIGHT */
    font-size: 1.1rem;
    margin-bottom: 5px;
    /* Reduced margin since it is above title now */
    display: block;
}

/* Footer */
footer.site-footer {
    background-color: #0d2e38;
    /* Very dark teal/green from reference image */
    color: #fff;
    padding-top: 4rem;
    margin-top: 5rem;
    font-size: 0.9rem;
}

.footer-brand {
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1.2;
}

.footer-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.payment-icons i {
    color: #fff;
    opacity: 0.8;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 1;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    color: #fff;
}

/* Offcanvas Menu */
.offcanvas-title {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--secondary-color);
}

.offcanvas-body a {
    font-family: var(--font-primary);
    transition: all 0.2s ease;
}

.offcanvas-body a:hover {
    background-color: #f8f9fa;
    padding-left: 1.5rem !important;
    /* Slide effect */
    color: var(--primary-color) !important;
}

/* Custom Tooltip */
.custom-tooltip-container {
    position: relative;
    /* display: inline-block; - Allow flex context */
}

.custom-tooltip {
    visibility: visible;
    /* Always visible for demonstration or testing? No, hover. */
    opacity: 0;
    transition: opacity 0.3s;
    background-color: #000;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 500;
    position: absolute;
    z-index: 1050;
    top: 130%;
    /* Below the icon */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.custom-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #000 transparent;
}

.custom-tooltip-container:hover .custom-tooltip {
    opacity: 1;
}

/* Top Bar */
.top-bar {
    background-color: #376b8a;
    /* Color from reference image (Slate Blue) */
    font-size: 0.9rem;
}

.top-bar a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Cart Drawer */
#offcanvasCart {
    font-family: var(--font-primary);
}

#offcanvasCart .offcanvas-title {
    font-size: 1rem;
    letter-spacing: 1px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

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

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 4px;
}

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

.cart-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #000;
    text-decoration: none;
    display: block;
}

.cart-item-price {
    font-weight: 600;
    color: #000;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Quantity Selector */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 2px;
}

.quantity-btn {
    background: none;
    border: none;
    padding: 2px 8px;
    font-size: 1.1rem;
    cursor: pointer;
    color: #000;
}

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

.quantity-input {
    width: 30px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0;
    /* appearance: textfield; */
    margin: 0;
}

/* Chrome, Safari, Edge, Opera */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.quantity-input[type=number] {
    -moz-appearance: textfield;
}

.remove-link {
    font-size: 0.85rem;
    text-decoration: underline;
    color: #000;
    cursor: pointer;
    margin-left: 15px;
}

.remove-link:hover {
    color: red;
}

/* Ribbon Style */
.ribbon-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 85px;
    height: 85px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

.ribbon {
    background-color: #dc3545;
    /* Red */
    color: #fff;
    text-align: center;
    transform: rotate(45deg);
    position: relative;
    top: 15px;
    left: -10px;
    width: 120px;
    padding: 7px 0;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Storefront Notification / Toast Component (Ancient Nutrition Brand Style)
   ========================================================================== */
#store-notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1095;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.store-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    pointer-events: auto;
    font-family: 'Poppins', sans-serif;
    animation: storeToastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.store-toast.store-toast-hiding {
    animation: storeToastSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes storeToastSlideDown {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes storeToastSlideUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }
}

@keyframes storeToastPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.store-toast.store-toast-pulse {
    animation: storeToastPulse 0.3s ease-in-out;
}

.store-toast-icon-wrap {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    margin-top: 2px;
}

.store-toast-body {
    flex-grow: 1;
    min-width: 0;
}

.store-toast-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 3px;
}

.store-toast-message {
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
}

.store-toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0 4px;
    margin: -4px -4px 0 0;
    color: inherit;
    opacity: 0.55;
    transition: opacity 0.15s ease;
}

.store-toast-close:hover,
.store-toast-close:focus {
    opacity: 1;
    outline: none;
}

/* Variant: Warning (Inventory default) */
.store-toast.store-toast-warning {
    background-color: #fffdf5;
    border: 1px solid #fbd38d;
    border-left: 4px solid #d97706;
    color: #2d3748;
}

.store-toast.store-toast-warning .store-toast-icon-wrap {
    color: #d97706;
}

.store-toast.store-toast-warning .store-toast-title {
    color: #92400e;
}

.store-toast.store-toast-warning .store-toast-message {
    color: #4a5568;
}

/* Variant: Error / Critical */
.store-toast.store-toast-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #1f2937;
}

.store-toast.store-toast-error .store-toast-icon-wrap {
    color: #dc2626;
}

.store-toast.store-toast-error .store-toast-title {
    color: #991b1b;
}

.store-toast.store-toast-error .store-toast-message {
    color: #374151;
}

/* Variant: Success */
.store-toast.store-toast-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    color: #1f2937;
}

.store-toast.store-toast-success .store-toast-icon-wrap {
    color: #16a34a;
}

.store-toast.store-toast-success .store-toast-title {
    color: #166534;
}

.store-toast.store-toast-success .store-toast-message {
    color: #374151;
}

/* Variant: Info */
.store-toast.store-toast-info {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 4px solid #0284c7;
    color: #1f2937;
}

.store-toast.store-toast-info .store-toast-icon-wrap {
    color: #0284c7;
}

.store-toast.store-toast-info .store-toast-title {
    color: #075985;
}

.store-toast.store-toast-info .store-toast-message {
    color: #374151;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    #store-notification-container {
        top: 14px;
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
        max-width: 100%;
    }
    
    .store-toast {
        padding: 12px 14px;
    }
}