:root {
    --primary-font: 'EB Garamond', serif;
    --bg-color: #ffffff;
    --text-color: #000000;
    --footer-bg: #f4f1ea;
    /* Matching announcement bar cream */
    --footer-text: #2c2c2c;
    --light-gray: #f8f9fa;
    --accent-color: #f4f1ea;
}

body {
    font-family: var(--primary-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

body.menu-open {
    overflow: hidden;
}

.logo {
    font-weight: 500;
    letter-spacing: 0.15em;
}

.header-logo {
    max-height: 30px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover .header-logo {
    transform: scale(1.02);
}

.footer-logo {
    max-height: 25px;
    width: auto;
}

.small-caps {
    letter-spacing: 0.2rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 350px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
}

.sidebar-menu.active {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    align-items: center;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    padding: 2rem 0;
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 2.5rem;
    font-family: var(--primary-font);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-right: 50px;
}

.search-input-wrapper input:focus {
    outline: none;
}

.search-submit-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
}

@media (max-width: 768px) {
    .search-input-wrapper input {
        font-size: 1.5rem;
    }
}

.sidebar-nav a {
    transition: opacity 0.3s ease;
}

.sidebar-nav a:hover {
    opacity: 0.6;
}

/* Header Adjustments */
header {
    z-index: 1000;
    flex-shrink: 0;
}

/* Hero Section & Splide Overrides */
.hero {
    min-height: 85vh;
}

#hero-slider .splide__track {
    height: 85vh;
}

.hero-image-container {
    height: 85vh;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease-out;
}

.splide__slide:hover .hero-img {
    transform: scale(1.03);
}

.hero-text-content {
    animation: fadeIn 1.2s ease-out;
}

/* Splide UI Customization */
.splide__arrow {
    background: transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.splide__arrow:hover {
    opacity: 1;
    background: transparent;
}

.splide__arrow svg {
    fill: #000;
    width: 2em;
    height: 2em;
}

.splide__pagination {
    bottom: 2rem;
}

.splide__pagination__page {
    background: #ccc;
    height: 2px;
    width: 30px;
    border-radius: 0;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.splide__pagination__page.is-active {
    background: #000;
    transform: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Grid */
.category-img-wrapper {
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--light-gray);
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-card:hover .category-img-wrapper img {
    transform: scale(1.08);
}

.category-card {
    cursor: pointer;
}

/* Featured Section */
.bg-light-soft {
    background-color: #fdfdfd;
}

.featured-circle-img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* About Section */
.about-section h2 {
    font-size: 3rem;
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.about-text-content {
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .about-text-content {
        margin: 0;
    }
}

/* Trust Bar */
.trust-bar {
    background-color: var(--footer-bg);
}

.trust-icon {
    color: var(--footer-text);
    opacity: 0.8;
}

.trust-bar .small-caps {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Reviews Section */
.reviews-section .stars {
    color: #2c2c2c;
    /* Darker tone for stars on white bg */
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.overall-rating .stars {
    font-size: 1.5rem;
}

.review-text {
    font-family: var(--primary-font);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.author-name {
    font-size: 0.9rem;
    color: #888;
}

/* Buttons */
.btn-outline-dark {
    border-width: 1px;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Instagram Section */
.instagram-post {
    aspect-ratio: 1/1;
    cursor: pointer;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-post:hover img {
    transform: scale(1.05);
}

.instagram-section .small-caps {
    color: #888;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    flex-shrink: 0;
}

.footer .logo {
    color: var(--footer-text);
}

.footer a {
    color: rgba(44, 44, 44, 0.7);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #000000;
}

.footer h4,
.footer h5 {
    color: #000000;
}

.footer .text-muted {
    color: rgba(44, 44, 44, 0.5) !important;
}

.footer .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Product Grid */
.product-grid-section {
    padding: 80px 0;
    background-color: #fff;
}

.product-card {
    margin-bottom: 50px;
    transition: transform 0.4s ease;
}

.product-image-wrapper {
    background-color: #f9f9f9;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

.product-title {
    font-size: 1rem;
    color: #000;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.product-price {
    font-size: 0.9rem;
    color: #666;
}

.star-rating {
    color: #d4af37;
    /* Gold color for stars */
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.star-rating .text-muted {
    color: #bbb !important;
    margin-left: 5px;
}

.breadcrumb-nav {
    padding: 40px 0 20px;
    font-size: 0.8rem;
}

/* --- Product Detail Page --- */
.product-gallery .main-image-container {
    height: 600px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.product-gallery .main-image-container img#mainProductImage {
    max-height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.thumbnail-grid {
    margin-top: 1rem;
}

.thumbnail-item {
    width: 120px;
    height: 120px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumbnail-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-item.active {
    border-color: #000;
}

.thumbnail-item:hover {
    border-color: #ccc;
}

.product-info-sticky {
    position: sticky;
    top: 100px;
}

.breadcrumb-nav a {
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.breadcrumb-nav .active {
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #fff;
    color: #000;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .hero-image-container {
        height: 50vh;
    }

    .display-3 {
        font-size: 2.5rem;
    }
}

/* Product Slider Styles */
.product-slider .splide__pagination {
    bottom: 10px;
    padding: 0;
    z-index: 2;
}

.product-slider .splide__pagination__page {
    width: 6px;
    height: 6px;
    background: #ccc;
    margin: 3px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.product-slider .splide__pagination__page.is-active {
    background: #000;
    opacity: 1;
    transform: scale(1.2);
}

.product-slider .product-image-wrapper {
    margin-bottom: 0;
}

.product-slider .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card>a {
    display: block;
    padding-top: 1rem;
}

/* --- Cart Page Styles --- */
.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    background-color: #f9f9f9;
}

.cart-table th {
    font-family: inherit;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 500;
    border-top: none;
    padding-bottom: 2rem;
}

.cart-table td {
    vertical-align: middle;
    padding: 2rem 0;
}

.qty-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 0.5rem;
}

.cart-summary {
    background-color: #fafafa;
    padding: 3rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.remove-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
}

.remove-link:hover {
    color: #000;
}

/* --- Login Page Styles --- */
.login-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.login-footer-links {
    font-size: 0.9rem;
    color: #666;
}

.login-footer-links a {
    color: #000;
    text-decoration: underline;
}

.login-footer-links a:hover {
    color: #333;
}

/* --- Checkout Page Styles --- */
.checkout-section-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
}

.payment-method-card {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.payment-method-card:hover {
    border-color: #999;
}

.payment-method-card.active {
    border-color: #000;
    background-color: #fcfcfc;
}

.order-summary-sidebar {
    background-color: #f9f9f9;
    padding: 2.5rem;
    position: sticky;
    top: 100px;
}

.checkout-logo {
    height: 40px;
}

.breadcrumb-checkout {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#shipping-fields {
    transition: all 0.3s ease;
}

.payment-icon {
    height: 24px;
}

/* --- Common Form Styles --- */
.form-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 0.3rem;
}

.form-control,
.form-select {
    border-radius: 0;
    padding: 0.75rem;
    border-color: #ddd;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: #000;
}

/* --- Notifications --- */
.toast {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.toast-header {
    background-color: #000 !important;
    padding: 0.75rem 1rem;
}

.toast-body {
    padding: 1.25rem 1rem;
}

.toast.show {
    animation: slideInRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}