.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 5, .6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s
}

.product-modal-overlay.open {
    opacity: 1;
    pointer-events: auto
}

.product-modal-box {
    width: 88%;
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(45, 25, 15, .65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    border-radius: 20px;
    border: 1px solid rgba(196, 148, 58, .3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .1);
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(.96);
    transition: .4s cubic-bezier(.25, 1, .5, 1)
}

.product-modal-overlay.open .product-modal-box {
    opacity: 1;
    transform: translateY(0) scale(1)
}

.product-modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    background: rgba(0, 0, 0, .6);
    color: #e2bc68;
    border: 1px solid rgba(226, 188, 104, .3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s
}

.product-modal-close:hover {
    background: #8c2030;
    color: #fff
}

.product-modal-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: #000;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    contain: layout
}

.product-modal-slides {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform .35s cubic-bezier(.25, .46, .45, .94)
}

.product-modal-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden
}

.product-modal-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block
}

.product-modal-slide svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%
}

.product-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(140, 32, 48, .85);
    color: #e2bc68;
    border: 1px solid #e2bc68;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background .2s, transform .2s
}

.product-modal-nav:hover {
    background: #8c2030;
    transform: translateY(-50%) scale(1.08)
}

.product-modal-nav.prev {
    left: 12px
}

.product-modal-nav.next {
    right: 12px
}

.product-modal-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5
}

.product-modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: background .2s, transform .2s
}

.product-modal-dot.active {
    background: #e2bc68;
    transform: scale(1.2)
}

.product-modal-body {
    padding: 24px;
    font-family: Tajawal, sans-serif;
    background: linear-gradient(180deg, rgba(30, 19, 12, .1) 0, rgba(21, 11, 6, .4) 100%)
}

.product-modal-cat {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #e2bc68;
    opacity: .85
}

.product-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    margin: 6px 0 10px;
    font-weight: 600;
    color: #fff;
    line-height: 1.25
}

.product-modal-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e2bc68;
    margin-bottom: 14px
}

.product-modal-price span {
    font-size: .85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, .6)
}

.product-modal-desc {
    font-size: .88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 24px;
    font-style: italic;
    border-left: 2px solid #c4943a;
    padding-left: 10px
}

.product-modal-action-btn {
    width: 100%;
    background: #8c2030;
    color: #e2bc68;
    border: 2.5px solid #e2bc68;
    padding: 13px;
    border-radius: 30px;
    font-family: Tajawal, sans-serif;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s, transform .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px
}

.product-modal-action-btn:hover {
    background: #a82e40;
    transform: translateY(-2px)
}

.product-modal-variants {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.product-variant-btn {
    padding: 5px 12px;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid rgba(226, 188, 104, .3);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .8);
    cursor: pointer;
    transition: .2s
}

.product-variant-btn.active {
    background: #e2bc68;
    color: #1e130c;
    border-color: #e2bc68
}

.product-modal-box.mallo-theme {
    background: var(--mist, #ebf0fb) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    color: var(--ink, #1f2937);
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .8)
}

.product-modal-box.mallo-theme .product-modal-close {
    background: rgba(255, 255, 255, .8);
    color: var(--ink, #1f2937);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1)
}

.product-modal-box.mallo-theme .product-modal-cat {
    color: var(--sky, #3b82f6)
}

.product-modal-box.mallo-theme .product-modal-price,
.product-modal-box.mallo-theme .product-modal-title {
    color: var(--ink, #1f2937)
}

.product-modal-box.mallo-theme .product-modal-action-btn {
    background: var(--sky, #3b82f6);
    color: #fff;
    border: 2.5px solid var(--sky, #3b82f6)
}

.product-modal-box.mallo-theme .product-modal-action-btn:hover {
    background: #2563eb
}

.product-modal-box.mallo-theme .product-modal-dot {
    background: rgba(0, 0, 0, .2)
}

.product-modal-box.mallo-theme .product-modal-dot.active {
    background: var(--sky, #3b82f6)
}
.product-variant-select {
    width: 100%;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(226, 188, 104, .3);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .9);
    cursor: pointer;
    transition: 0.2s;
    outline: none;
    margin-bottom: 15px;
}

.product-variant-select:focus {
    border-color: #e2bc68;
}

.product-variant-select option {
    background: #1e130c;
    color: #e2bc68;
}

.mallo-theme .product-variant-select {
    background: #fff;
    color: #1f2937;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
}

.mallo-theme .product-variant-select:focus {
    border-color: #7c3aed;
}

.mallo-theme .product-variant-select option {
    background: #fff;
    color: #1f2937;
}

