/* ==========================
   HERO SECTION
========================== */
#hero-souvenirs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6.5em 2em;
    background-image: 
        radial-gradient(circle at center, transparent 15%, rgba(0, 15, 10, 0.72) 100%),
        linear-gradient(135deg, rgba(0, 21, 15, 0.88) 0%, rgba(0, 123, 94, 0.3) 55%, rgba(0, 21, 15, 0.92) 100%),
        url('../images/jewelry.webp');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 37, 26, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#hero-souvenirs::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 12, 0.45);
    border-radius: 16px;
    z-index: 1;
    pointer-events: none;
}

#hero-souvenirs h1,
#hero-souvenirs h2,
#hero-souvenirs p {
    position: relative;
    z-index: 2;
}

#hero-souvenirs h1,
#hero-souvenirs h2 {
    color: #ffffff !important;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    font-family: var(--font-display, inherit);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
}

#hero-souvenirs p {
    color: #ffffff !important;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 500;
    max-width: 760px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.shop-header-link {
    text-decoration: none;
}

.cart-shell {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1400;
}

.cart-shell .cart-toggle {
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

#cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(0, 77, 64, 0.16);
    color: #004d40;
    font-size: 0.9rem;
    font-weight: 700;
}

.cart-toggle {
    border: none;
    cursor: pointer;
}

.cart-dropdown {
    position: absolute;
    bottom: calc(100% + 0.75rem);
    right: 0;
    width: min(440px, calc(100vw - 2rem));
    padding: 1rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 77, 64, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    z-index: 1200;
}

.cart-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.cart-dropdown-header h2 {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: #004d40;
}

.close-cart {
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #004d40;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

/* ==========================
   SOUVENIRS GRID
========================== */
#souvenirs-list {

    margin-top: 2em;
}

.souvenir-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0 1.75rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: #f7fbf9;
    border: 1px solid rgba(0, 77, 64, 0.1);
}

.market-note {
    margin-bottom: 0;
    color: #466055;
}

.currency-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: #004d40;
}

.currency-tools {
    display: grid;
    justify-items: end;
    gap: 0.45rem;
}

.currency-picker select {
    min-width: 110px;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(0, 77, 64, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #004d40;
    font-weight: 700;
}

.currency-note {
    margin-bottom: 0;
    font-size: 0.88rem;
    color: #5e6e68;
}

#souvenirs-list .souvenirs-grid {
    align-items: stretch;
}

#souvenirs-list .souvenir {
    background-color: #fff4e6;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

#souvenirs-list .souvenir:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

#souvenirs-list .souvenir img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

#souvenirs-list .souvenir > :not(img) {
    padding: 1.5em;
}

#souvenirs-list .souvenir h3 {
    margin-bottom: 0.5em;
}

#souvenirs-list .souvenir p {
    margin-bottom: 1em;
}

#souvenirs-list .souvenir .souvenir-price {
    margin-top: auto;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #004d40;
}

#souvenirs-list .souvenir .btn {
    background-color: #007b5e;
    color: #fff;
    margin-top: auto;
}

#souvenirs-list .souvenir .btn:hover {
    background-color: #004d40;
}

.shop-intro {
    margin: 2rem 0 0;
    padding: 1.35rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7e6, #eef8f4);
    border: 1px solid rgba(0, 77, 64, 0.12);
}

.shop-intro p:last-child {
    margin-bottom: 0;
}

.shop-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.shop-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 77, 64, 0.08);
    color: #004d40;
    font-weight: 700;
    font-size: 0.92rem;
}

/* ==========================
   CART
========================== */
.cart-items {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-height: 340px;
    overflow-y: auto;
}

.cart-item {
    display: grid;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #fcfefd;
    border: 1px solid #e1ebe6;
}

.cart-item p,
.cart-empty {
    margin-bottom: 0;
    color: #5e6e68;
}

.cart-item-main,
.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-weight: 700;
    color: #20483d;
    cursor: pointer;
}

.cart-item-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #007b5e;
}

.cart-quantity-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    background: #eef7f3;
}

.qty-btn {
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #007b5e;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.qty-value {
    min-width: 1.2rem;
    text-align: center;
    font-weight: 700;
    color: #004d40;
}

.remove-cart-item,
.secondary-btn {
    width: auto;
    margin: 0;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(0, 77, 64, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #004d40;
    font-weight: 700;
    cursor: pointer;
}

.remove-cart-item:hover,
.secondary-btn:hover {
    background: #004d40;
    color: #fff;
}

.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-summary-block {
    display: grid;
    gap: 0.2rem;
}

.cart-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-summary {
    margin-bottom: 0;
    color: #004d40;
    font-weight: 700;
}

.selected-summary {
    font-size: 0.95rem;
    color: #466055;
}

.cart-action-buttons .btn:disabled,
.cart-action-buttons .secondary-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ==========================
   CALL TO ACTION
========================== */
#cta-souvenirs {
    background-color: #007b5e;
    color: #fff;
    text-align: center;
    padding: 4em 2em;
    border-radius: 12px;
    margin-top: 3em;
}

#cta-souvenirs .btn {
    --btn-text-color: #004d40;
    background-color: #ffc107;
    color: var(--btn-text-color);
}

#cta-souvenirs .btn:hover {
    background-color: #e0a800;
    color: var(--btn-text-color);
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 1200px) {
    #hero-souvenirs {
        padding: 5em 2em;
    }
}

@media (max-width: 992px) {
    #hero-souvenirs {
        padding: 5em 1.5em;
    }
    .destinations-grid,
    .tours-grid,
    .souvenirs-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #hero-souvenirs {
        padding: 4em 1em;
    }

    .header-actions {
        width: 100%;
    }

    .shop-header-link {
        width: 100%;
        text-align: center;
    }

    .souvenir-toolbar,
    .currency-picker {
        flex-direction: column;
        align-items: flex-start;
    }
    .currency-tools {
        justify-items: start;
    }
    #souvenirs-list {
        gap: 1.5em;
    }
    .destinations-grid,
    .tours-grid,
    .souvenirs-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    #cta-souvenirs {
        padding: 3em 1.5em;
    }

    .cart-dropdown {
        right: 0;
        bottom: calc(100% + 0.65rem);
        width: min(420px, calc(100vw - 1.5rem));
    }

    .cart-item,
    .cart-item-main,
    .cart-item-actions,
    .cart-actions,
    .cart-action-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    #hero-souvenirs h2 {
        font-size: 1.4rem;
    }
    #hero-souvenirs p {
        font-size: 0.95rem;
    }
    #souvenirs-list .souvenir img {
        height: 180px;
    }
    #souvenirs-list .souvenir > :not(img) {
        padding: 1em;
    }
    #souvenirs-list .souvenir h3 {
        font-size: 1.1rem;
    }
    #cta-souvenirs {
        padding: 2.5em 1em;
    }
    #cta-souvenirs h2 {
        font-size: 1.2rem;
    }

    .cart-shell {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .cart-dropdown {
        width: calc(100vw - 1rem);
        right: 0;
    }

    .shop-badges {
        gap: 0.5rem;
    }

    .currency-picker select {
        width: 100%;
    }
}

/* ==========================================================================
   ADVANCED SOUVENIRS PAGE STYLING (Artisan Banner, Filters, Modal, Reviews)
   ========================================================================== */

/* Artisan Advocacy Banner */
.artisan-banner-container {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

.artisan-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #e6f4f1, #f0faf7);
    border: 1px solid rgba(0, 77, 64, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 77, 64, 0.04);
}

.artisan-banner-icon {
    font-size: 2.2rem;
    color: #007b5e;
    background: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 77, 64, 0.08);
    flex-shrink: 0;
}

.artisan-banner-content h3 {
    color: #004d40;
    margin: 0 0 0.4rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.artisan-banner-content p {
    margin: 0;
    color: #3e524b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Advanced Filterbar Container */
.souvenirs-filterbar-container {
    background: #ffffff;
    border: 1px solid #e1ebe6;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.search-sort-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.search-box-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-box-wrapper input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border-radius: 12px;
    border: 1.5px solid #d0dfd8;
    background: #fdfdfd;
    color: #004d40;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.search-box-wrapper input:focus {
    outline: none;
    border-color: #007b5e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 123, 94, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7ca191;
    font-size: 1rem;
}

.clear-search-btn {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: #eef4f1;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #466055;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.clear-search-btn:hover {
    background: #007b5e;
    color: #ffffff;
}

.sort-select-wrapper select {
    padding: 0.85rem 2.5rem 0.85rem 1rem;
    border-radius: 12px;
    border: 1.5px solid #d0dfd8;
    background: #fdfdfd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23004d40' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center;
    appearance: none;
    font-weight: 600;
    color: #004d40;
    cursor: pointer;
    min-width: 180px;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.sort-select-wrapper select:focus {
    outline: none;
    border-color: #007b5e;
    box-shadow: 0 0 0 4px rgba(0, 123, 94, 0.1);
}

.categories-favorites-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid #d0dfd8;
    background: #ffffff;
    color: #004d40;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #007b5e;
    color: #007b5e;
    background: #f4faf7;
}

.filter-btn.active {
    background: #007b5e;
    border-color: #007b5e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 123, 94, 0.2);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fav-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid #fecdd3;
    background: #fff1f2;
    color: #e11d48;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fav-filter-btn:hover, .fav-filter-btn.active {
    background: #e11d48;
    border-color: #e11d48;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

/* No Results State */
.no-souvenirs-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #f7fbf9;
    border: 2px dashed #c2dbd0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-souvenirs-found i {
    font-size: 2.5rem;
    color: #7ca191;
    margin-bottom: 1rem;
}

.no-souvenirs-found h3 {
    color: #004d40;
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
}

.no-souvenirs-found p {
    color: #5e736b;
    margin: 0 0 1.5rem 0;
    max-width: 460px;
    font-size: 0.95rem;
}

/* Image Container & Styling details on Grid Items */
.souvenir-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.souvenir-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

#souvenirs-list .souvenir:hover .souvenir-card-img {
    transform: scale(1.08);
}

.category-badge {
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: rgba(0, 77, 64, 0.92);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}

.souvenir-fav-toggle {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.souvenir-fav-toggle:hover {
    transform: scale(1.1);
    background: #ffffff;
    color: #e11d48;
}

.souvenir-fav-toggle.active {
    color: #e11d48;
    background: #ffffff;
}

.souvenir-info-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem !important;
    text-align: left !important;
}

.souvenir-card-title {
    color: #004d40;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.4rem 0 !important;
    line-height: 1.3;
    cursor: pointer;
}

.souvenir-card-title:hover {
    color: #007b5e;
}

.souvenir-rating-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    cursor: pointer;
}

.stars-display {
    display: inline-flex;
    align-items: center;
}

.rating-count {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

.souvenir-artisan-credit {
    font-size: 0.82rem;
    color: #007b5e;
    font-weight: 700;
    margin-bottom: 0.75rem !important;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.souvenir-excerpt {
    color: #4a5568;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.25rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.souvenir-card-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.5rem;
    margin-top: auto;
}

.souvenir-card-actions .btn {
    padding: 0.65rem 0.5rem !important;
    font-size: 0.82rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 10px;
    margin: 0 !important;
    width: 100%;
}

.btn-quick-view {
    background: #f0faf6;
    border: 1.5px solid #a3d9c9;
    color: #007b5e;
}

.btn-quick-view:hover {
    background: #007b5e;
    color: #ffffff;
    border-color: #007b5e;
}

/* Modal Core Overlays & Containers */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 15, 12, 0.65);
    backdrop-filter: blur(5px);
}

.modal-content-wrapper {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    max-height: 800px;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 15, 12, 0.45);
    z-index: 2100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-close-btn {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f3;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #2c3e35;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2200;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #004d40;
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    min-height: 100%;
}

/* Modal Image Side Panel */
.modal-image-panel {
    background: #f7faf8;
    border-right: 1px solid #e2ece8;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-image-panel img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 77, 64, 0.08);
}

.modal-specs {
    background: #ffffff;
    border: 1px solid #e5edea;
    border-radius: 12px;
    padding: 1.25rem;
}

.modal-specs h4 {
    color: #004d40;
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    border-b: 1px solid #eef3f1;
    padding-bottom: 0.5rem;
}

.modal-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.modal-specs li {
    font-size: 0.85rem;
    color: #4a5568;
    display: flex;
    justify-content: space-between;
}

.modal-specs li strong {
    color: #2d3748;
}

/* Modal Info Side Panel */
.modal-info-panel {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-badge {
    display: inline-block;
    align-self: flex-start;
    background: #e6f5ef;
    color: #007b5e;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.modal-header-section h2 {
    color: #004d40;
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.modal-rating-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.rating-text {
    font-size: 0.88rem;
    color: #4a5568;
    font-weight: 600;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #007b5e;
    margin: 0;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    border-b: 2px solid #eef3f1;
    gap: 1.5rem;
}

.tab-btn {
    padding: 0.6rem 0.25rem 0.75rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #004d40;
}

.tab-btn.active {
    color: #007b5e;
    border-bottom-color: #007b5e;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-intro-text {
    font-size: 0.88rem;
    color: #4a5568;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 1rem;
}

.artisan-credit {
    font-size: 0.9rem;
    color: #007b5e;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-description {
    font-size: 0.92rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.artisan-story-block {
    background: #f7faf9;
    border-left: 4px solid #007b5e;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.artisan-story-block h5 {
    color: #004d40;
    margin: 0 0 0.4rem 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.artisan-story-block p {
    margin: 0;
    font-size: 0.88rem;
    color: #3e524b;
    line-height: 1.5;
    font-style: italic;
}

/* Quantity Picker and Modal Add to Cart */
.cart-addition-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #f0f7f4;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #d0ecdf;
}

.quantity-picker {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
}

.qty-adjust {
    background: #f8fafc;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s ease;
}

.qty-adjust:hover {
    background: #e2e8f0;
    color: #004d40;
}

.quantity-picker input {
    width: 44px;
    height: 32px;
    border: none;
    border-left: 1.5px solid #cbd5e1;
    border-right: 1.5px solid #cbd5e1;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #004d40;
    outline: none;
    appearance: none;
    -moz-appearance: textfield;
}

.quantity-picker input::-webkit-outer-spin-button,
.quantity-picker input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-modal {
    flex: 1;
    background: #007b5e;
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.add-to-cart-modal:hover {
    background: #004d40;
}

/* Custom Inquiry Form */
.inquiry-form {
    display: grid;
    gap: 0.85rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    padding: 1.25rem;
    border-radius: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.form-group.flex-1 {
    flex: 1;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007b5e;
}

.form-success-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.form-success-message.hidden {
    display: none !important;
}

/* Reviews Panel */
.modal-reviews-section {
    border-top: 1.5px solid #eef3f1;
    padding-top: 1.5rem;
    text-align: left;
}

.modal-reviews-section h3 {
    color: #004d40;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
}

.reviews-list {
    display: grid;
    gap: 1rem;
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
}

.no-reviews-note {
    font-size: 0.88rem;
    color: #718096;
    font-style: italic;
    margin: 0;
}

.review-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.review-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.review-author {
    font-size: 0.88rem;
    color: #1e293b;
    font-weight: 700;
}

.review-date {
    font-size: 0.78rem;
    color: #64748b;
}

.review-stars-wrapper {
    margin-bottom: 0.4rem;
}

.review-comment-text {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}

/* Write a Review section */
.add-review-form-container {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
}

.add-review-form-container h4 {
    color: #004d40;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.85rem 0;
}

.review-form {
    display: grid;
    gap: 0.85rem;
}

.review-form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.star-rating-picker {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    height: 38px;
}

.picker-star {
    font-size: 1.2rem;
    color: #ffc107;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.picker-star:hover {
    transform: scale(1.2);
}

.review-success-msg {
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-success-msg.hidden {
    display: none !important;
}

/* Responsive Overrides for Modals & Filterbar */
@media (max-width: 900px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-image-panel {
        border-right: none;
        border-bottom: 1px solid #e2ece8;
        padding: 1.5rem;
    }

    .modal-specs {
        margin-top: 0;
    }

    .modal-info-panel {
        padding: 1.5rem;
    }

    .modal-content-wrapper {
        height: 95vh;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .search-sort-row {
        flex-direction: column;
    }

    .search-box-wrapper {
        min-width: 100%;
    }

    .sort-select-wrapper select {
        width: 100%;
    }

    .categories-favorites-row {
        flex-direction: column;
        align-items: stretch;
    }

    .category-buttons {
        justify-content: flex-start;
    }

    .toolbar-actions {
        width: 100%;
    }

    .fav-filter-btn {
        width: 100%;
        justify-content: center;
    }

    .artisan-banner {
        flex-direction: column;
        text-align: center;
    }

    .artisan-banner-icon {
        margin: 0 auto;
    }

    .souvenir-card-actions {
        grid-template-columns: 1fr;
    }
}
