/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f7;
    --bg-tertiary: #f0f0f0;
    --bg-card: #f9f9f9;
    --bg-hover: #f2f2f2;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #999999;
    --gold: #b8935a;
    --gold-light: #c9a46b;
    --gold-dark: #96753f;
    --accent: #b8935a;
    --border: transparent;
    --border-light: transparent;
    --star-yellow: #f5c518;
    --success: #2e8b57;
    --danger: #d63031;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Alexandria', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    outline: none;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.announcement-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.announcement-icon {
    font-size: 14px;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-placeholder {
    max-height: 45px;
    width: auto;
    display: block;
}

.logo-txt-fallback {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.nav-trust {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.trust-item svg {
    color: var(--gold);
}

/* ===== HERO PRODUCT ===== */
.hero-product {
    padding: 24px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 80px;
}

.gallery-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
}

.gallery-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gold);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 0.2px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    /* Forces exact 1:1 ratio */
    overflow: hidden;
}

.slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    direction: ltr;
}

.slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d0d0;
    transition: all 0.3s;
    border: none;
}

.dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 10px;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 2px;
    color: var(--star-yellow);
}

.rating-text {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.rating-count {
    font-size: 13px;
    color: var(--text-muted);
}

.rating-divider {
    color: #ddd;
    font-size: 14px;
}

.sold-count {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
}

.product-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
}

.product-brand {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Price Block */
.price-block {

    border-radius: var(--radius-md);
    padding: 18px 20px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 38px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.price-current small {
    font-size: 20px;
    font-weight: 600;
}

.price-old {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-badge {
    color: #d63031;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.price-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Urgency */
.urgency-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.urgency-icon svg {
    color: var(--gold);
}

.urgency-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.urgency-text strong {
    color: var(--gold-light);
}

.highlight-num {
    color: #e85454;
    font-weight: 800;
}

/* Delivery Tracker */
.delivery-tracker {
    border-radius: var(--radius-md);
    padding: 18px 20px;
}

.tracker-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.tracker-title svg {
    color: var(--gold);
}

.tracker-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.tracker-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    flex-shrink: 0;
    position: relative;
}

.tracker-step.done .step-dot {
    background: var(--gold);
    border-color: var(--gold);
}

.tracker-step.done .step-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.step-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.step-date {
    font-size: 11px;
    color: var(--text-muted);
}

.tracker-line {
    flex: 0.5;
    height: 2px;
    background: #ddd;
    margin-top: 6px;
}

/* CTA Button */
.cta-button {
    width: 100%;
    padding: 18px;
    background: var(--gold);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    border-radius: var(--radius-md);
    letter-spacing: 0.5px;
    transition: background 0.2s;
    font-family: 'Alexandria', sans-serif;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background: var(--gold-light);
}

/* Payment Methods */
.payment-methods {
    text-align: center;
}

.payment-label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pay-icon {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.pay-icon:hover {
    opacity: 0.8;
}

.pay-icon-img {
    height: 28px;
    width: auto;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.pay-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    background: #eee;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: #666;
    font-family: 'Alexandria', sans-serif;
}

.offer-payment {
    margin-top: 12px;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-secondary);
}

.badge-item svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* ===== PRODUCT DESCRIPTION ===== */
.product-description {
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.desc-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.desc-tag {
    display: inline-block;
    padding: 6px 18px;
    background: #fdf6ec;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 18px;
}

.desc-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.desc-intro {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* Perfumes Grid */
.perfumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
}

.perfume-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    text-align: center;
    transition: background 0.3s;
}

.perfume-card:hover {
    background: var(--bg-tertiary);
}

.perfume-card.featured {
    background: #fdf6ec;
    position: relative;
}

.perfume-card.featured::before {
    content: '⭐ العطر الرئيسي';
    position: absolute;
    top: -11px;
    right: 50%;
    transform: translateX(50%);
    background: var(--gold);
    color: #fff;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.perfume-size {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.perfume-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.perfume-notes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-secondary);
}

.note-sep {
    color: var(--gold-dark);
    font-size: 10px;
}

/* Cities */
.cities-section {
    margin-bottom: 30px;
}

.cities-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.cities-title small {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.cities-icon {
    margin-left: 8px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.city-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    text-align: center;
    transition: background 0.3s;
}

.city-card:hover {
    background: var(--bg-tertiary);
}

.city-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 6px;
}

.city-notes {
    font-size: 12px;
    color: var(--text-secondary);
}

.desc-closing {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 10px;
}

/* ===== OFFER BOX ===== */
.offer-box-section {
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.offer-box {
    background: #fdf6ec;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.offer-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.offer-content {
    padding: 50px 40px;
    text-align: center;
}

.offer-tag {
    display: inline-block;
    padding: 6px 20px;
    background: var(--gold);
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.offer-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.offer-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.offer-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.offer-price {
    font-size: 52px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.offer-price small {
    font-size: 24px;
    font-weight: 600;
}

.offer-old-price {
    font-size: 22px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.offer-discount {
    color: #d63031;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
}

.offer-includes {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.offer-cta {
    max-width: 400px;
    margin: 0 auto 16px;
    display: block;
}

.offer-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.offer-guarantee svg {
    color: var(--success);
}

/* ===== FAQ ===== */
.faq-section {
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 36px;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
}

.faq-item:hover {
    background: var(--bg-tertiary);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-arrow {
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 20px 16px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== REVIEWS ===== */
.reviews-section {
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.reviews-header {
    text-align: center;
    margin-bottom: 36px;
}

.reviews-summary {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.summary-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.big-rating {
    font-size: 36px;
    font-weight: 900;
    color: var(--star-yellow);
}

.summary-stars {
    display: flex;
    gap: 2px;
    color: var(--star-yellow);
}

.summary-count {
    font-size: 13px;
    color: var(--text-muted);
}

.reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
}

.review-card:hover {
    background: var(--bg-tertiary);
}

.review-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.reviewer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.reviewer-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.review-date {
    font-size: 11px;
    color: var(--text-muted);
}

.review-badge {
    font-size: 10px;
    color: var(--success);
    font-weight: 600;
    white-space: nowrap;
    background: #e8f5ee;
    padding: 3px 8px;
    border-radius: 50px;
}

.review-stars {
    display: flex;
    gap: 2px;
    color: var(--star-yellow);
    margin-bottom: 10px;
}

.review-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid #eee;
    padding: 60px 0 0;
    background: #f5f5f5;
}

.footer-newsletter {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 50px;
}

.footer-newsletter h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-newsletter p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Alexandria', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form input:focus {
    border-color: var(--gold-dark);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-md);
    white-space: nowrap;
    transition: background 0.2s;
    font-family: 'Alexandria', sans-serif;
}

.newsletter-form button:hover {
    background: var(--gold-light);
}

.newsletter-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #e8f5ee;
    border-radius: var(--radius-md);
    color: var(--success);
    font-size: 14px;
    font-weight: 600;
}

.newsletter-success.show {
    display: flex;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s, background 0.2s;
}

.social-icon:hover {
    color: var(--gold);
    background: #ddd;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        position: static;
    }

    .product-title {
        font-size: 26px;
    }

    .offer-title {
        font-size: 22px;
    }

    .offer-price {
        font-size: 42px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-trust {
        display: none;
    }

    .hero-product {
        padding: 20px 0 30px;
    }

    .product-title {
        font-size: 24px;
    }

    .price-current {
        font-size: 32px;
    }


    .perfumes-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cities-grid {
        grid-template-columns: 1fr 1fr;
    }

    .desc-header h2 {
        font-size: 26px;
    }

    .offer-content {
        padding: 30px 20px;
    }

    .offer-title {
        font-size: 20px;
    }

    .offer-price {
        font-size: 38px;
    }

    .reviews-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .announcement-bar {
        font-size: 11px;
        padding: 8px 10px;
    }

    .brand-text {
        font-size: 20px;
    }

    .product-title {
        font-size: 22px;
    }

    .price-current {
        font-size: 50px;
    }

    .perfumes-grid {
        grid-template-columns: 1fr;
    }

    .cities-grid {
        grid-template-columns: 1fr 1fr;
    }

    .offer-price {
        font-size: 60px;
    }

    .cta-button {
        font-size: 16px;
        padding: 16px;
    }
}