:root {
    --primary-color: #000000;
    --accent-color: #c8a464;
    --accent-hover: #b8943e;
    --bg-light: #f9f9f9;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    background: var(--primary-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: white !important;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.navbar-brand span {
    font-family: var(--font-heading);
    font-weight: 400;
    color: white;
    font-size: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Remove underline for cart icon */
.cart-header-icon::after {
    display: none !important;
}

.btn-membership {
    background: linear-gradient(135deg, var(--accent-color) 0%, #dbb570 100%);
    border: none;
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-membership:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 164, 100, 0.3);
}

.cart-header-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-subscription {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%);
}

.subscription-content {
    max-width: 800px;
    margin: 0 auto;
}

.subscription-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.subscription-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-weight: 400;
}

.price-tag {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

/* Products Grid */
.products-section {
    padding: 60px 20px;
    background: #ffffff;
    scroll-margin-top: 100px;
    /* Offset for sticky header */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 280px;
    background: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-specs {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.product-actions {
    margin-top: auto;
}

.btn-add-case {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-case:hover {
    background: var(--accent-color);
}

/* Cart Drawer */
/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    /* Force full height regardless of vh issues */
    right: -100%;
    /* Start fully off-screen */
    width: 100%;
    /* Default to full width on mobile */
    max-width: 450px;
    /* Cap width on larger screens */
    /* Full height */
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1050;
    /* Higher than Bootstrap modal/navbar */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* CRITICAL: Prevents the drawer itself from scrolling */
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.cart-close:hover {
    color: var(--primary-color);
}

.cart-items-container {
    flex: 1;
    /* Shorthand for flex-grow: 1, flex-shrink: 1, flex-basis: 0% */
    overflow-y: auto;
    padding: 20px 20px 0 20px;
    /* Top, Right, Bottom, Left */
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    /* Critical for nested flex scrolling */
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    transition: all 0.2s;
}

.cart-item:hover {
    border-color: var(--accent-color);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 4px;
    padding: 5px;
}

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

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-brand {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
}

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

.cart-footer {
    padding: 25px;
    border-top: 1px solid #eee;
    background: #fcfcfc;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: var(--accent-color);
}

.btn-continue-shopping {
    width: 100%;
    background: transparent;
    color: var(--text-gray);
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Floating Cart Button (Mobile) */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s ease;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    background: var(--accent-color);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Configuration */
.cart-config {
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.config-group {
    margin-bottom: 15px;
}

.config-group:last-child {
    margin-bottom: 0;
}

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

.config-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: white;
    box-sizing: border-box;
    /* Fixes width calculation including padding */
}

.config-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .subscription-content h1 {
        font-size: 2.5rem;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .cart-header {
        padding: 15px 20px;
        background: #f8f8f8;
        /* Slight contrast to show it's a header */
    }

    .cart-close {
        font-size: 2rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        color: var(--primary-color);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Social Proof Bar */
.social-proof-bar {
    background-color: #111;
    color: #fff;
    padding: 15px 0;
    font-family: var(--font-heading);
    font-style: italic;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 20px;
    background-color: #fff;
}

.benefit-card {
    padding: 30px;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Guarantee Section */
.guarantee-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.guarantee-content {
    max-width: 600px;
    margin: 0 auto;
}

.guarantee-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.guarantee-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Footer */
.site-footer {
    background-color: #f9f9f9;
    /* Light background */
    color: var(--text-dark);
    padding: 60px 0 30px;
    border-top: 1px solid #eee;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

.social-link {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: white;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: underline;
    /* Make it obvious it's a link */
    text-underline-offset: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration-color: var(--accent-color);
    /* Elegant hover effect */
}

.secure-badge {
    font-size: 0.85rem;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: white;
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.copyright {
    margin-top: 40px;
    color: #999;
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-subscription {
        padding: 60px 20px;
        /* Reduced padding */
    }

    .subscription-content h1 {
        font-size: 2.2rem;
        /* Slightly smaller heading */
    }

    .benefits-section {
        padding: 40px 20px;
        /* Reduced padding */
    }

    .benefit-card {
        padding: 15px;
        /* Compact cards */
        margin-bottom: 20px;
    }

    .benefit-card:last-child {
        margin-bottom: 0;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .cart-header {
        padding: 15px 20px;
        background: #f8f8f8;
    }

    .cart-close {
        font-size: 2rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        color: var(--primary-color);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}