/* Global Styles */
html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Added from product.css for consistency */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #F8F8F8; /* Light grey background - Consistent */
    color: #333333; /* Darker body text - Consistent */
    overflow-x: hidden; /* Added from product.css for consistency */
    width: 100%; /* Added from product.css for consistency */
    margin: 0; /* Added from product.css for consistency */
}

/* Custom Tailwind Utility Classes (Adjusted to reflect product page's black accent) */
.text-accent-yellow {
    color: #FFAA00; /* Retained if you have specific instances where yellow text is desired */
}
/* Removed .bg-accent-yellow, .hover\:bg-darker-yellow, .border-accent-yellow,
   .focus\:border-accent-yellow, .shadow-accent-yellow-focus from original contact CSS
   as they are replaced by black equivalents from product page styling. */

.bg-black { /* Consistent with product page */
    background-color: #000000;
}
.border-black { /* Consistent with product page */
    border-color: #000000;
}
.focus\:border-black:focus { /* Consistent with product page */
    border-color: #000000;
}
.shadow-black-focus:focus { /* Consistent with product page */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.4);
}
.text-heading {
    color: #1A1A1A; /* Darker headings - Consistent */
}
.text-body-dark {
    color: #333333; /* Consistent */
}
.font-cinzel { /* Added from product.css for Cinzel font usage */
    font-family: 'Cinzel', serif;
}
/* Header */
header {
    background-color: rgba(255, 255, 255, 0.98); /* Consistent */
    border-bottom: 1px solid #EDEDED; /* Consistent */
    backdrop-filter: blur(8px); /* Consistent */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08); /* Consistent */
    transition: box-shadow 0.3s ease; /* Consistent */
    position: sticky; /* Added from product.css for sticky header */
    top: 0; /* Added from product.css for sticky header */
    z-index: 50; /* Added from product.css for sticky header */
}

.header-logo-text { /* Added from product.css for logo styling */
    font-family: 'Cinzel', serif;
    font-weight: 800;
}

.nav-link {
    position: relative;
    color: #333333; /* Consistent */
    transition: color 0.3s ease; /* Changed: Removed transform from transition to match product.css */
    font-weight: 500; /* Consistent */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px; /* Changed: From 2.5px to 2px to match product.css */
    bottom: -4px; /* Changed: From -6px to -4px to match product.css */
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000; /* CHANGED: From #FFAA00 (Fire Yellow) to #000000 (Black) */
    transition: width 0.3s ease; /* Changed: Removed left from transition to match product.css */
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}

.nav-link:hover {
    color: #000000; /* CHANGED: From #FFAA00 (Fire Yellow) to #000000 (Black) */
    /* Removed: transform: translateY(-2px); to match product.css */
}

/* Mobile Menu Styles (Aligned with product.css structure and basic styling) */
#mobile-menu {
    display: none;
    padding-bottom: 1rem;
}

#mobile-menu.active {
    display: flex;
}

.nav-link-mobile {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem; /* Changed: From 1.1rem to 1rem to match product.css */
    font-weight: 500;
    color: #333333;
    width: 100%;
    border-radius: 6px; /* Added from product.css */
}

.nav-link-mobile:hover {
    background-color: #F0F0F0; /* Added from product.css */
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    #nav-list { /* Assuming #nav-list is your desktop navigation container */
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
    }
    #mobile-menu {
        display: none !important;
    }
}


/* Cart Table */
.cart-table {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.cart-table th {
    color: #1A1A1A;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    padding: 1.5rem;
}

.cart-item-row {
    border-bottom: 1px solid #EDEDED;
    transition: background-color 0.3s ease;
}

.cart-item-row:hover {
    background-color: #F8F8F8;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.cart-item-row:hover .cart-item-image {
    transform: scale(1.05);
}

.quantity-control {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 9999px;
    width: 120px;
    margin: 0 auto;
}

.quantity-control button {
    background-color: #FFFFFF;
    color: #333333;
    padding: 0.5rem;
    font-size: 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.quantity-control button:hover {
    background-color: #F0F0F0;
    border-color: #555555;
}

.quantity-control input {
    background-color: #FFFFFF;
    color: #333333;
    border: none;
    text-align: center;
    width: 40px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    -moz-appearance: textfield;
    appearance: none;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-button {
    color: #FF5555;
    transition: color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.remove-button:hover {
    color: #CC3333;
    transform: translateY(-2px);
}

/* Checkout Form */
.checkout-form-container {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.form-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;
    font-family: 'Montserrat', sans-serif;
}

.form-input:focus {
    border-color: #555555;
    box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.3);
    outline: none;
}

.add-to-cart-button {
    background-color: #000000;
    color: #FFFFFF;
    padding: 0.85rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.add-to-cart-button:hover {
    background-color: #000010;
    transform: translateY(-3px);
}

.add-to-cart-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #000000;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.toast.show {
    opacity: 1;
}

/* Footer */
footer {
    background-color: #000000;
    border-top: 1px solid #333333;
}

.footer-link {
    color: #FFFFFF;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.footer-link:hover {
    color: #CCCCCC;
}

.footer-social-icon {
    color: #FFFFFF;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-social-icon:hover {
    color: #CCCCCC;
    transform: translateY(-3px);
}

/* 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;
}

/* Loader Styles */
.loader-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #000000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (min-width: 641px) {
    .cart-table {
        display: table;
    }
}

@media (max-width: 768px) {
    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-item-row {
        margin-bottom: 1.5rem;
        padding: 1rem;
        border: 1px solid #EDEDED;
        border-radius: 12px;
        background-color: #FFFFFF;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    }

    .cart-item-row td {
        padding: 0.5rem 0;
        text-align: right;
        position: relative;
        padding-left: 50%;
    }

    .cart-item-row td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 0.5rem;
        font-weight: 600;
        text-align: left;
        color: #1A1A1A;
        font-family: 'Playfair Display', serif;
    }

    .cart-item-row td:first-child {
        padding-left: 0;
        text-align: left;
        display: flex;
        align-items: center;
    }

    .cart-item-row td:first-child::before {
        content: none;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
        margin-right: 1rem;
    }

    .quantity-control {
        width: 100%;
        max-width: 120px;
        margin-left: auto;
    }

    .add-to-cart-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@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;
    }

    .cart-item-row td {
        padding-left: 40%;
    }

    .cart-item-row td::before {
        width: 35%;
    }

    .checkout-form-container {
        padding: 1.5rem;
    }
}