: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;
}

html {
    scroll-behavior: auto;
}

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

.site-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

main {
    flex: 1 0 auto;
}

body.menu-open {
    overflow: hidden;
}

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

.header-logo {
    max-height: 26px;
    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.15rem;
    font-size: 0.75rem;
    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: 10020;
    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: 10010;
    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: 10030;
    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: 1020 !important;
    overflow: visible !important;
    flex-shrink: 0;
    position: sticky !important;
    top: 0;
    /* Transition specific properties only to prevent viewport height resize jumps on mobile */
    transition: padding 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                backdrop-filter 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                -webkit-backdrop-filter 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

header.scrolled {
    position: sticky !important;
    top: 0;
    width: 100%;
    z-index: 1020 !important;
    overflow: visible !important;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

header.scrolled .header-logo {
    max-height: 18px !important;
}

header.scrolled .logo-link span {
    font-size: 0.65rem !important;
    opacity: 0.6 !important;
}

.logo-link span {
    transition: font-size 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Announcement Bar Transitions */
.announcement-bar {
    transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
                padding 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    max-height: 40px;
    opacity: 1;
}

.announcement-bar.scrolled {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

@media (max-width: 768px) {
    .header-logo {
        max-height: 24px !important;
        transition: max-height 0.3s ease;
    }
    /* Explicit Mobile Scrolled Overrides to beat default media specificity */
    header.scrolled {
        padding-top: 0.7rem !important;
        padding-bottom: 0.7rem !important;
    }
    header.scrolled .header-logo {
        max-height: 20px !important;
    }
    header.scrolled .logo-link span {
        font-size: 0.65rem !important;
    }
    .logo-link .small-caps {
        font-size: 0.65rem !important;
        letter-spacing: 0.1em !important;
        white-space: normal;
        text-align: center;
        max-width: 200px;
    }
    .announcement-bar {
        font-size: 0.65rem !important;
        letter-spacing: 0.03rem !important;
        white-space: nowrap !important;
    }
}

.header-left,
.header-right {
    flex: 1;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.logo-link {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 10;
    white-space: nowrap;
}

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

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

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

.hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.5s ease;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero, #hero-slider .splide__track {
        height: auto !important;
        min-height: auto !important;
    }
    
    .hero-image-container {
        height: 380px !important;
        min-height: 380px !important;
    }
    
    .hero-image-container::after {
        background: transparent !important;
    }
    
    .hero-text-content {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100%;
        z-index: 1;
        padding: 3rem 1.5rem !important;
        text-align: center;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

.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 {
    opacity: 0; visibility: hidden;
}

/* 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-wide {
    overflow: hidden;
    background-color: var(--light-gray);
    height: 350px;
    width: 100%;
}

@media (max-width: 768px) {
    .category-img-wrapper-wide {
        height: 250px;
    }
}

.category-img-wrapper img,
.category-img-wrapper-wide 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:hover .category-img-wrapper-wide img {
    transform: scale(1.04);
}

.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-carousel {
    max-height: 500px;
    height: 500px;
    position: relative;
    padding: 0 80px;
}

.instagram-carousel .splide__track {
    height: 100% !important;
}

.instagram-carousel .splide__slide {
    height: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
}

.instagram-carousel-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    text-decoration: none;
}

.instagram-carousel-img-wrapper {
    position: relative;
    height: 100%;
    max-width: 100%;
    width: fit-content;
    margin: 0 auto;
    display: block;
    overflow: hidden;
}

.instagram-carousel-img {
    height: 100%;
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.instagram-carousel-link:hover .instagram-carousel-img {
    transform: scale(1.03);
}

.instagram-carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.instagram-carousel-link:hover .instagram-carousel-overlay {
    opacity: 1;
}

/* Arrows styling - PlainChains brand: minimal, thin, elegant */
.instagram-carousel .splide__arrow {
    background: transparent !important;
    border: none !important;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.instagram-carousel .splide__arrow:hover {
    opacity: 1;
    background: transparent !important;
}

/* Customize arrow SVG to be thin and modern */
.instagram-carousel .splide__arrow svg {
    fill: none !important;
    stroke: #000000 !important;
    stroke-width: 1px !important;
    width: 24px !important;
    height: 24px !important;
    transition: transform 0.3s ease;
}

.instagram-carousel .splide__arrow--prev {
    left: 20px !important;
}

.instagram-carousel .splide__arrow--next {
    right: 20px !important;
}

.instagram-carousel .splide__arrow--prev:hover svg {
    transform: translateX(-4px);
}

.instagram-carousel .splide__arrow--next:hover svg {
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .instagram-carousel {
        padding: 0 40px;
        height: 400px;
        max-height: 400px;
    }
    .instagram-carousel .splide__arrow--prev {
        left: 5px !important;
    }
    .instagram-carousel .splide__arrow--next {
        right: 5px !important;
    }
}

@media (max-width: 576px) {
    .instagram-carousel {
        padding: 0 30px;
        height: 320px;
        max-height: 320px;
    }
    .instagram-carousel .splide__slide {
        padding: 0 8px;
    }
    .instagram-carousel .splide__arrow--prev {
        left: 0px !important;
    }
    .instagram-carousel .splide__arrow--next {
        right: 0px !important;
    }
}

/* 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: 20px 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;
}

/* Featured Collection Section Header Line */
.featured-collection-section h2::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #000;
    margin: 20px auto 0;
    transition: width 0.8s ease;
}

.featured-collection-section.reveal h2::after {
    width: 60px;
}

.featured-splide .splide__pagination {
    bottom: -25px !important;
}

.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;
}

@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 10px 0 5px !important;
    }
}

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

@media (max-width: 768px) {
    .product-gallery .main-image-container {
        height: 350px !important;
    }
}

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

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

@media (max-width: 768px) {
    .thumbnail-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 8px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .thumbnail-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
}

.thumbnail-item {
    width: 100%;
    aspect-ratio: 1/1;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .thumbnail-item {
        flex: 0 0 80px;
        scroll-snap-align: start;
    }
}

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

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

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

/* Ensure main carousel arrows are visible and positioned well */
#main-carousel .splide__arrow--prev {
    left: -1rem;
}
#main-carousel .splide__arrow--next {
    right: -1rem;
}

@media (max-width: 1200px) {
    #main-carousel .splide__arrow--prev {
        left: 0.5rem;
    }
    #main-carousel .splide__arrow--next {
        right: 0.5rem;
    }
}

.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: 100px;
    height: 100px;
    object-fit: cover;
    background-color: #f9f9f9;
}

.cart-items-header {
    letter-spacing: 0.15em;
    border-bottom: 1px solid #000;
}

.quantity-selector {
    background: #fff;
    min-width: 125px;
    height: 42px;
}

.quantity-selector button {
    height: 100%;
    transition: background-color 0.2s;
    color: #000;
}

.quantity-selector button:hover {
    background-color: #f8f8f8;
}

.cart-summary {
    background-color: #fcfcfc;
    padding: 2.5rem;
    border: 1px solid #eee;
}

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

.remove-link {
    letter-spacing: 0.1em;
    color: #dc3545;
    font-weight: 600;
    transition: all 0.2s;
}

.remove-link:hover {
    color: #bd2130;
    text-decoration: underline !important;
}

@media (max-width: 991px) {
    .cart-item-image {
        width: 85px;
        height: 85px;
    }
    
    .quantity-selector {
        min-width: 100px;
    }
    
    .cart-summary {
        padding: 1.5rem;
    }
}

/* --- 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: 30px;
}

.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,
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;
}
.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;
    }
}

/* --- Sale Price Styles --- */
.original-price-strikethrough {
    position: relative;
    display: inline-block;
    color: #888;
    margin-right: 10px;
}

.original-price-strikethrough::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    height: 2px;
    background: #dc3545; /* Red */
    transform: rotate(-12deg);
    pointer-events: none;
}

.sale-price {
    color: #dc3545;
    font-weight: 500;
}
/* Shop Controls */
.shop-controls {
    /* Layout handled in Blade via flexbox */
}

.filter-btn {
    text-decoration: none;
    color: #999;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.filter-btn:hover {
    color: #000;
}

.filter-btn.active {
    color: #000;
    font-weight: 500;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 12px;
    right: 12px;
    height: 1px;
    background: #000;
}

.filter-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: #bbb;
    text-transform: uppercase;
    font-weight: 600;
    margin-right: 8px;
}

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* --- Image Zoom & Lightbox --- */
.main-image-container {
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.main-image-container img {
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    transform-origin: center center;
}

@media (min-width: 992px) {
    .main-image-container.is-zoomed img {
        transform: scale(2);
    }
}

.lightbox-modal .modal-dialog {
    max-width: 100vw;
    margin: 0;
}

.lightbox-modal .modal-content {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    height: 100vh;
    border: none;
    border-radius: 0;
}

.lightbox-modal .custom-close {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 3000;
    opacity: 1;
    background-color: #ffffff;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background-size: 12px;
    border: none;
}

.lightbox-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 40px;
    overflow: hidden; /* Prevent page stretching/scrollbars during zoom */
}

.lightbox-image {
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center center;
    cursor: zoom-in;
}

.lightbox-image.is-zoomed {
    cursor: zoom-out;
}

.lightbox-instruction {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: 2000;
}

@media (max-width: 768px) {
    .lightbox-modal .custom-close {
        top: 5px;
        right: 5px;
    }
}
