/* Global Styles */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #F8F8F8;
    color: #333333;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
}

/* Custom Classes for Tailwind */
.text-accent-yellow {
    color: #FFAA00;
}

.bg-black {
    background-color: #000000;
}

.hover\:bg-gray-800:hover {
    background-color: #1F1F1F;
}

.border-black {
    border-color: #000000;
}

.focus\:border-black:focus {
    border-color: #000000;
}

.shadow-black-focus:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.4);
}

.text-heading {
    color: #1A1A1A;
}

.text-body-dark {
    color: #333333;
}

.font-cinzel {
    font-family: 'Playfair Display', serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #EDEDED;
    backdrop-filter: blur(8px);
    width: 100%;
    z-index: 50;
}

.nav-link {
    position: relative;
    color: #333333;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #000000;
}

/* Mobile Menu Styles */
#mobile-menu {
    display: none;
}

#mobile-menu.active {
    display: flex;
}

.nav-link-mobile {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333333;
    width: 100%;
}

.nav-link-mobile:hover {
    background-color: #F0F0F0;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    #nav-list {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
    }
    #mobile-menu {
        display: none !important;
    }
}

/* Swiper Slider */
.swiper-container {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    /* Removed max-height to let image dictate size */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    max-width: 100%; /* Ensure image doesn't exceed container */
}

.swiper-pagination-bullet {
    background-color: #555555 !important;
    opacity: 0.6 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
}

/* Responsive Adjustments for Swiper */
@media (max-width: 768px) {
    .swiper-container {
        width: 100%; /* Ensure full width on smaller screens */
    }
}

@media (max-width: 640px) {
    .swiper-container {
        width: 100%; /* Ensure full width on mobile */
    }
}

/* Product Info */
.product-info h2 {
    font-family: 'Playfair Display', serif;
    color: #1A1A1A;
    font-weight: 800;
}

.product-info .price {
    font-weight: 600;
}

.product-info .description {
    color: #444444;
    font-weight: 400;
}

.size-select,
.quantity-input {
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    color: #333333;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -moz-appearance: textfield;
    appearance: none;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.size-select:focus,
.quantity-input:focus {
    border-color: #555555;
    box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.3);
    outline: none;
}

.quantity-control button {
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    color: #333333;
    padding: 0.85rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-control button:hover {
    background-color: #F0F0F0;
    border-color: #555555;
}

.add-to-cart-button {
    background-color: #000000;
    color: #FFFFFF;
    padding: 0.85rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: none;
}

.add-to-cart-button:hover {
    background-color: #000010;
    transform: translateY(-3px);
    box-shadow: none;
}

.social-share a {
    color: #555555;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-share a:hover {
    color: #333333;
    transform: translateY(-2px);
}

/* Cart Popup */
#cart-popup .popup-content {
    background-color: #FFFFFF;
    border: 1px solid #EDEDED;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#cart-popup h3 {
    color: #555555;
    font-family: 'Playfair Display', serif;
}

#cart-popup p {
    color: #333333;
}

#cart-popup .view-cart-button {
    background-color: #333333;
    color: #FFFFFF;
    border-radius: 9999px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#cart-popup .view-cart-button:hover {
    background-color: #1A1A1A;
    transform: translateY(-2px);
}

#cart-popup .continue-shopping-button {
    background-color: #FFFFFF;
    border: 1px solid #333333;
    color: #333333;
    border-radius: 9999px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

#cart-popup .continue-shopping-button:hover {
    background-color: #333333;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #000000;
    color: #FFFFFF;
    border-top: 1px solid #333333;
}

.footer-link {
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #CCCCCC;
}

.footer-social-icon {
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.footer-social-icon:hover {
    color: #CCCCCC;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #000000;
    color: #FFFFFF;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 100;
    cursor: pointer;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #1F1F1F;
}

/* Responsive Adjustments */
@media (min-width: 641px) {
    .product-info .add-to-cart-button {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    #nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        border-top: 1px solid #EDEDED;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    }

    #nav-list.active {
        display: flex;
    }

    #nav-list li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }

    #nav-list .nav-link {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 60;
    }
}