/* Base Styles & Variables */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --dark-overlay: rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.cart-btn {
    position: relative;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Header & Navigation - Guinness Style */
header {
    background: #000 !important;
    backdrop-filter: none;
}

header nav {
    padding: 1rem 0;
}

.logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    max-width: 1200px;
    margin: 0 auto;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.products h2.animate::after {
    transform: scaleX(1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.add-to-cart {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.add-to-cart:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Checkout Modal */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem 0;
}

.checkout-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    padding: 2rem;
    position: relative;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s ease 0.2s;
    margin: 2rem 0;
}

.checkout-modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.order-summary, .payment-section {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.order-summary h3, .payment-section h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #ddd;
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
    margin-right: 1rem;
}

.item-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.item-price {
    color: var(--secondary-color);
    font-weight: 600;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: #333;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
}

.payment-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.payment-method i {
    font-size: 1.5rem;
}

.payment-method.active {
    border-color: var(--secondary-color);
    background-color: rgba(212, 175, 55, 0.1);
}

.payment-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pay-now-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.pay-now-btn:hover {
    background-color: #c19b2e;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-section p, .footer-section a {
    color: #ddd;
    margin-bottom: 0.75rem;
    display: block;
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .hamburger {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Utility Classes */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #c19b2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hidden {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}



/* Products Section */
.products {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.products h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: capitalize;
}

.filter-btn:hover {
    background: #f5f5f5;
}

.filter-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-category {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    min-height: 60px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #eee;
}

.price {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.add-to-cart {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart i {
    font-size: 1.1rem;
}

.add-to-cart:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Rating */
.rating {
    display: flex;
    justify-content: center;
    margin: 0.8rem 0;
    color: #ffc107;
}

.rating i {
    margin: 0 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .products h2 {
        font-size: 2.2rem;
    }
    
    .category-filter {
        gap: 0.8rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products {
        padding: 4rem 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Guinness Custom Styles */
/* Header & Navigation - Guinness Style */
header {
    background: #000 !important;
    backdrop-filter: none;
}

header nav {
    padding: 1rem 0;
}

header .logo {
    font-family: 'Arial Black', sans-serif !important;
    font-size: 2rem;
    font-weight: 900;
    color: white !important;
    letter-spacing: 2px;
    text-align: center;
}

header .nav-links a {
    color: white !important;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

header .nav-links a:hover {
    color: #d4af37 !important;
}

header .nav-links a::after {
    display: none;
}

/* Navigation Fixes */
/* Ensure mobile menu is hidden by default and positioned correctly */
#mobileMenu.hidden {
    display: none !important;
}

/* Ensure desktop links are visible only on medium screens and up */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex !important;
    }
}

/* Hero Section - Guinness Style */
.hero {
    background: #000 !important;
    min-height: 100vh;
    display: block !important;
    position: relative;
}

.hero h1 {
    font-family: 'Arial Black', sans-serif !important;
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.9;
    color: white;
    margin-bottom: 2rem;
    text-shadow: none;
}

.hero p {
    font-family: 'Arial', sans-serif;
    font-size: 1.125rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.cta-button {
    border: 2px solid white !important;
    color: white !important;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    background: transparent !important;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: none !important;
}

.cta-button:hover {
    background: white !important;
    color: black !important;
    transform: none;
    box-shadow: none;
}

/* About Section - Guinness Style */
#story {
    background: #f5f5f5 !important;
    position: relative;
    padding: 5rem 0;
}

#story h2 {
    font-family: 'Arial Black', sans-serif !important;
    font-size: 3.5rem;
    font-weight: 900;
    color: black;
    margin-bottom: 1.5rem;
}

#story h3 {
    font-family: 'Arial', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

#story h4 {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: black;
    margin-bottom: 1rem;
}

#story p {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: black;
}

.gold-underline {
    width: 6rem;
    height: 0.25rem;
    background: #d4af37;
    margin-bottom: 2rem;
}

/* Background Numbers */
.bg-number {
    position: absolute;
    font-family: 'Arial Black', sans-serif;
    font-size: 12rem;
    font-weight: 900;
    opacity: 0.1;
    z-index: 0;
}

/* Navigation Arrows */
.nav-arrows {
    position: absolute;
    display: flex;
    gap: 1rem;
}

.nav-arrow {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid #d4af37;
    background: transparent;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #d4af37;
    color: white;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.scroll-text {
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: black;
    margin-bottom: 0.5rem;
}

/* Writing Mode for Vertical Text */
.writing-mode-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    #story h2 {
        font-size: 2.5rem;
    }
    
    .bg-number {
        font-size: 8rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Container Background Texture */
#products {
    background-color: #f4f1de; /* The cream/beige color from image */
    background-image: url('../guinness-bottle.png');
}

/* Specific Font Styling */
.font-black {
    font-family: 'Arial Black', sans-serif;
    letter-spacing: -2px;
}

/* Metric Scale Dots */
.bg-secondary {
    background-color: #d4af37; /* Match your gold logo color */
}

/* Bottle Shadow Effect */
.drop-shadow-2xl {
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.45));
}

/* 1. Remove default Swiper Arrows & reset positions */
.swiper-button-next::after, 
.swiper-button-prev::after {
    display: none !important;
}

.swiper-button-prev,
.swiper-button-next {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    color: inherit !important;
}

/* 2. Style-pagination-bullet */
.swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    background: #000 !important;
    opacity: 0.2 !important;
    margin: 0 !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #d4af37 !important; /* Gold */
    height: 18px !important;
    border-radius: 6px !important;
}

button {
    cursor: pointer;
    outline: none !important;
}

/* Optional: Add a subtle inner shadow to the main CTA */
.add-to-cart-btn {
    box-shadow: inset 0 0 0 0 #d4af37;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-to-cart-btn:hover {
    box-shadow: inset 400px 0 0 0 #d4af37;
}

#dropdownCartItems {
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}
#dropdownCartItems::-webkit-scrollbar {
    width: 4px;
}
#dropdownCartItems::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 20px;
}