/* 
    Product Page Styles 
    Extracted from PerfumeProductPage.js for Clean Code and Performance
*/

.ppp-root {
    background: #faf9f7;
    min-height: 100vh;
    font-family: 'IBMPlexSansArabic', sans-serif;
    padding-top: 0px;
}
@media (max-width: 1025px) {
    .ppp-root { padding-top: 10px; }
}
.ppp-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
@media (max-width: 1025px) {
    .ppp-hero { 
        display: flex;
        flex-direction: column;
        gap: 5px; 
        padding: 10px 16px; 
    }
    .ppp-gallery { 
        position: relative !important; 
        top: 0 !important; 
        width: 100% !important;
        margin-bottom: 0;
        display: flex !important;
        flex-direction: column !important;
        gap: 0;
    }
    .ppp-thumbs {
        display: none !important;
    }
    .ppp-main-img-wrap {
        flex: 1;
        aspect-ratio: 4/5 !important;
        min-height: auto !important;
        height: auto !important;
        max-height: 600px;
        margin-bottom: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }
    .ppp-slider-track {
        width: 100%;
        height: 100%;
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        border-radius: 28px;
        background: #fff;
        box-shadow: 0 15px 45px rgba(0,0,0,0.08);
        border: 1px solid #f1ece4;
    }
    .ppp-slider-track::-webkit-scrollbar { display: none; }
    .ppp-main-img {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        scroll-snap-align: center;
        object-fit: cover;
        transition: none !important;
        display: block !important;
    }
}

/* Slider Dots */
.ppp-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 8px;
    z-index: 10;
    background: rgba(0,0,0,0.1);
    padding: 6px 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}
@media (max-width: 1025px) {
    .ppp-slider-dots { display: flex; }
}
.ppp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ppp-dot.active {
    width: 20px;
    border-radius: 10px;
    background: #fff;
}
/* === Gallery === */
.ppp-gallery { 
    position: sticky; 
    top: 100px; 
    transition: top 0.3s ease;
    z-index: 5;
}
.ppp-main-img-wrap {
    position: relative;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 1/1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    border: 1px solid #f1ece4;
}
.ppp-main-img-wrap:hover .ppp-main-img { transform: scale(1.05); }
.ppp-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    display: none;
    transition: transform 0.6s cubic-bezier(.25,.46,.45,.94);
}
.ppp-main-img.active-desktop { display: block; }
@media (max-width: 1025px) {
   .ppp-main-img { display: block; }
}
.ppp-discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
    z-index: 11;
}
[dir="rtl"] .ppp-discount-badge {
    left: auto;
    right: 16px;
}
.ppp-sold-out-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ppp-sold-out-badge i {
    color: #f59e0b;
    font-size: 11px;
}
.ppp-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.ppp-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.ppp-thumb.active { border-color: #c79b52; }
.ppp-thumb img { width: 100%; height: 100%; object-fit: cover; padding: 0; }

/* === Info === */
.ppp-breadcrumb {
    font-size: 12px;
    color: #94a3b8;
    display: flex; gap: 6px; align-items: center;
    grid-column: span 2;
    margin-bottom: 10px;
}
.ppp-breadcrumb a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.ppp-breadcrumb a:hover { color: #c79b52; }
.ppp-breadcrumb i { font-size: 9px; }
.ppp-current-breadcrumb {
    color: #0f172a;
    font-weight: 700;
}

.ppp-info-panel {
    display: flex;
    flex-direction: column;
}

.ppp-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.ppp-brand-name {
    font-size: 13px;
    font-weight: 900;
    color: #c79b52;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
}
.ppp-brand-logo {
    width: auto;
    max-width: 90px;
    height: 32px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    border: none;
}
.ppp-type-pill {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: #f1ece4;
    color: #7c5e2e;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ppp-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.15;
}
.ppp-meta-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.ppp-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid;
}
.ppp-pill i { font-size: 12px; }
.ppp-pill.volume { background: #fff; border-color: #e2e8f0; color: #475569; }
.ppp-pill.volume i { color: #c79b52; font-size: 11px; }
.ppp-pill.gender { color: #fff; border-color: transparent; }

/* === Price === */
.ppp-price-section {
    background: linear-gradient(to right, #ffffff, #fcfaf8);
    border-radius: 20px;
    padding: 16px 24px;
    margin-bottom: 24px;
    border: 1px solid #f1ece4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.ppp-price-label { font-size: 11px; color: #94a3b8; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.ppp-price-label.highlight { color: #c79b52; }

.ppp-price-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.ppp-price-num {
    font-size: 38px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -1.5px;
}
.ppp-price-cur { font-size: 15px; font-weight: 800; color: #c79b52; margin-inline-start: 4px; }
.ppp-price-divider { width: 1px; height: 40px; background: #f1ece4; margin: 0 20px; }
.ppp-price-right { flex: 1; }
.ppp-old-price-row { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    gap: 4px; 
}
[dir="rtl"] .ppp-old-price-row { align-items: flex-start; }

.ppp-old-price { font-size: 15px; color: #94a3b8; text-decoration: line-through; font-weight: 600; opacity: 0.8; }
.ppp-save-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(239,68,68,0.2);
}

/* === Buttons === */
.ppp-actions { display: flex; gap: 12px; margin-bottom: 32px; }
@media (max-width: 1025px) {
    .ppp-actions { display: none !important; }
}
.ppp-atc-btn {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    background: linear-gradient(135deg, #e3bb7c 0%, #c79b52 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(199, 155, 82, 0.3);
    font-family: inherit;
}
.ppp-atc-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(199,155,82,0.4); }
.ppp-atc-btn.added { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 8px 24px rgba(34,197,94,0.25); }
.ppp-atc-btn.out-of-stock { background: #0f172a; box-shadow: none; }

.ppp-wish-btn {
    width: 62px;
    height: 62px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
    flex-shrink: 0;
}
.ppp-wish-btn.active { border-color: #ef4444; color: #ef4444; background: #fff5f5; }
.ppp-wish-btn:hover { border-color: #ef4444; color: #ef4444; }

/* Notify Panel */
.ppp-notify-panel {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #f1ece4;
    margin-top: 16px;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.ppp-notify-success {
    text-align: center;
    color: #10b981;
    font-weight: bold;
}
.ppp-notify-success i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}
.ppp-notify-title { 
    margin: 0 0 12px 0; 
    font-size: 14px; 
    color: #0f172a;
}
.ppp-notify-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ppp-notify-fields input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.ppp-notify-fields input:focus { border-color: #c79b52; }
.ppp-notify-text {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}
.ppp-notify-submit {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: #c79b52;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}
.ppp-notify-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* === Tabs === */
.ppp-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 24px;
}
.ppp-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ppp-tab.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.ppp-tab i { color: #c79b52; }

/* === Description === */
.ppp-desc {
    color: #475569;
    font-size: 15.5px;
    line-height: 1.85;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f1f5f9;
}

/* === Fragrance Pyramid === */
.ppp-pyramid { display: flex; flex-direction: column; gap: 12px; }
.ppp-note-block {
    background: #fff;
    border-radius: 16px;
    padding: 18px 24px;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}
.ppp-note-block::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
}
[dir="rtl"] .ppp-note-block::before {
    inset: 0 0 0 auto;
}
.ppp-note-block.top::before { background: linear-gradient(to bottom, #fbbf24, #f59e0b); }
.ppp-note-block.middle::before { background: linear-gradient(to bottom, #f43f5e, #e11d48); }
.ppp-note-block.base::before { background: linear-gradient(to bottom, #8b5cf6, #7c3aed); }

.ppp-note-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.ppp-note-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}
.top .ppp-note-icon { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.middle .ppp-note-icon { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.base .ppp-note-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.ppp-note-type { font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.top .ppp-note-type { color: #d97706; }
.middle .ppp-note-type { color: #be123c; }
.base .ppp-note-type { color: #6d28d9; }
.ppp-note-desc { font-size: 11px; color: #94a3b8; font-weight: 500; margin-top: 1px; }

.ppp-notes-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ppp-note-chip {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
}
.top .ppp-note-chip { background: #fef3c7; color: #92400e; }
.middle .ppp-note-chip { background: #ffe4e6; color: #9f1239; }
.base .ppp-note-chip { background: #ede9fe; color: #5b21b6; }

/* === Related === */
.ppp-related {
    max-width: 1280px;
    margin: 60px auto 0;
    padding: 0 24px 80px;
}
.ppp-related-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin-bottom: 48px;
}
.ppp-related-title {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}
.ppp-related-subtitle { font-size: 14px; color: #94a3b8; margin-bottom: 28px; }
.ppp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
}
@media (max-width: 600px) {
    .ppp-related-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Sticky Mobile Bar */
.ppp-sticky-bar {
    position: fixed;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    z-index: 9999;
    gap: 12px;
    pointer-events: none;
}
@media (max-width: 1025px) {
    .ppp-sticky-bar { display: flex; }
}

.ppp-sticky-actions { 
    display: flex; 
    gap: 10px; 
    width: 100%;
    max-width: 500px;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 16px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.4);
}

.ppp-sticky-atc {
    background: linear-gradient(135deg, #e3bb7c, #c79b52);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 15px rgba(199,155,82,0.3);
    cursor: pointer;
    flex: 1;
    transition: all 0.2s;
    font-family: inherit;
}
.ppp-sticky-atc:active { transform: scale(0.96); }
.ppp-sticky-atc.added { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 6px 15px rgba(34,197,94,0.3); }
.ppp-sticky-atc.out-of-stock { background: #0f172a; box-shadow: none; font-size: 13px; }

.ppp-sticky-wish {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff;
    border: 1.5px solid #f1ece4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.ppp-sticky-wish.active { background: #fef2f2; color: #ef4444; border-color: #fecaca; }
