
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --yb-bg: #0e0d0c;
    --yb-bg-elevated: #151311;
    --yb-card-bg: #141210;
    --yb-border: rgba(255, 255, 255, 0.085);
    --yb-gold: #d4a366;
    --yb-gold-hover: #e0b277;
    --yb-text: #f3efe9;
    --yb-muted: #aba399;
}

html, body, #wrapwrap, main {
    background-color: var(--yb-bg) !important;
    color: var(--yb-text) !important;
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif !important;
    direction: rtl;
}

/* Hide default Odoo white header & footer chrome cleanly */
#wrapwrap > header#top {
    background: rgba(14, 13, 12, 0.92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
}
#wrapwrap > header#top > nav {
    display: none !important;
}
#wrapwrap > footer#bottom {
    background-color: #0b0a09 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: var(--yb-muted) !important;
}
#wrapwrap > footer#bottom .o_footer_copyright,
#wrapwrap > footer#bottom #footer {
    background-color: #0b0a09 !important;
    color: var(--yb-muted) !important;
}
#wrapwrap > footer#bottom a {
    color: var(--yb-gold) !important;
}

/* Custom Luxury Header */
.yb-header {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
}
.yb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: var(--yb-text) !important;
}
.yb-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.yb-brand-title {
    font-size: 20px;
    font-weight: 700;
    color: #f6f2eb;
    letter-spacing: -0.2px;
}
.yb-brand-sub {
    font-size: 8.5px;
    letter-spacing: 1.4px;
    color: #9f968b;
    text-transform: uppercase;
    margin-top: 2px;
    font-family: system-ui, -apple-system, sans-serif;
}
.yb-nav {
    display: flex;
    align-items: center;
    gap: 38px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.yb-nav a {
    color: #d6cfc6 !important;
    text-decoration: none !important;
    font-size: 14.5px;
    font-weight: 400;
    padding-bottom: 8px;
    position: relative;
    transition: color 0.2s ease;
}
.yb-nav a:hover,
.yb-nav a.active {
    color: var(--yb-gold) !important;
}
.yb-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 1.5px;
    background: var(--yb-gold);
    border-radius: 2px;
}
.yb-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.yb-icon-btn {
    color: #e9e3da !important;
    text-decoration: none !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    transition: color 0.2s ease;
}
.yb-icon-btn:hover {
    color: var(--yb-gold) !important;
}
.yb-cart-badge {
    position: absolute;
    top: -2px;
    left: -5px;
    background: var(--yb-gold);
    color: #14110e;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Main Page Container */
.yb-page {
    background-color: var(--yb-bg);
    color: var(--yb-text);
    overflow-x: hidden;
}

/* Hero Section */
.yb-hero {
    position: relative;
    width: 100%;
    min-height: 540px;
    display: flex;
    align-items: center;
    background-color: #0e0d0c;
    overflow: hidden;
}
.yb-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/yaftabad/img/hero.jpg');
    background-size: cover;
    background-position: left center;
    z-index: 1;
}
.yb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14,13,12,0.08) 0%, rgba(14,13,12,0.38) 52%, rgba(14,13,12,0.92) 78%, rgba(14,13,12,0.98) 100%);
    z-index: 2;
}
.yb-hero-bottom-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(to bottom, rgba(14,13,12,0) 0%, #0e0d0c 100%);
    z-index: 3;
}
.yb-hero-inner {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 28px 96px;
    display: flex;
    justify-content: flex-start;
}
.yb-hero-content {
    max-width: 440px;
    text-align: right;
}
.yb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--yb-gold);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 18px;
}
.yb-eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 1.5px;
    background: var(--yb-gold);
}
.yb-hero-title {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.32;
    color: #f7f4ef;
    margin: 0 0 30px;
    letter-spacing: -0.5px;
}
.yb-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #dba96b 0%, #c89355 100%);
    color: #161310 !important;
    font-size: 14.5px;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 8px 26px rgba(212, 163, 102, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.yb-cta-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 32px rgba(212, 163, 102, 0.32);
}
.yb-hero-dots {
    position: absolute;
    bottom: 28px;
    right: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
}
.yb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
}
.yb-dot.active {
    background: var(--yb-gold);
    width: 9px;
    height: 9px;
}

/* Container */
.yb-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Category Strip */
.yb-categories {
    padding: 24px 0 64px;
}
.yb-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.yb-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: #e6e0d8 !important;
    transition: transform 0.25s ease;
}
.yb-cat-item:hover {
    transform: translateY(-4px);
    color: var(--yb-gold) !important;
}
.yb-cat-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #12100f;
    position: relative;
    margin-bottom: 14px;
}
.yb-cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.yb-cat-item:hover .yb-cat-img-wrap img {
    transform: scale(1.04);
}
.yb-cat-label {
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

/* Section Header */
.yb-section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.yb-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #f6f2eb;
    margin: 0;
    white-space: nowrap;
}
.yb-section-line {
    width: 96px;
    height: 1.5px;
    background: linear-gradient(270deg, var(--yb-gold) 0%, rgba(212,163,102,0.1) 100%);
}

/* Best Sellers Grid */
.yb-bestsellers {
    padding: 8px 0 56px;
}
.yb-prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.yb-prod-card {
    background: linear-gradient(180deg, #171513 0%, #11100e 100%);
    border: 1px solid var(--yb-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.yb-prod-card:hover {
    border-color: rgba(212, 163, 102, 0.38);
    transform: translateY(-4px);
}
.yb-wish-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(14, 13, 12, 0.45);
    border: 1px solid rgba(255,255,255,0.08);
    color: #d6cfc6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    text-decoration: none !important;
}
.yb-wish-btn:hover,
.yb-wish-btn.liked {
    color: var(--yb-gold);
    border-color: var(--yb-gold);
}
.yb-prod-img-link {
    display: block;
    aspect-ratio: 4 / 3.3;
    overflow: hidden;
    background: #131110;
}
.yb-prod-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.yb-prod-card:hover .yb-prod-img-link img {
    transform: scale(1.04);
}
.yb-prod-body {
    padding: 16px 18px 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}
.yb-prod-info {
    text-align: right;
    min-width: 0;
}
.yb-prod-name {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: #f3efe9 !important;
    text-decoration: none !important;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.yb-prod-price {
    font-size: 13.5px;
    color: #cdc5bb;
    font-weight: 500;
}
.yb-add-cart-form {
    margin: 0;
    flex-shrink: 0;
}
.yb-cart-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #dba96b 0%, #c89355 100%);
    color: #161310;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 14px rgba(212, 163, 102, 0.25);
}
.yb-cart-circle:hover {
    transform: scale(1.08);
    filter: brightness(1.08);
}

/* Bottom Promo Banner */
.yb-banner-section {
    padding: 0 0 72px;
}
.yb-banner-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--yb-border);
    min-height: 235px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: #151311;
}
.yb-banner-bg {
    position: absolute;
    inset: 0;
    background-image: url('/yaftabad/img/banner.jpg');
    background-size: cover;
    background-position: right center;
    z-index: 1;
}
.yb-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(21,19,17,0.12) 0%, rgba(21,19,17,0.48) 46%, rgba(21,19,17,0.95) 68%, rgba(21,19,17,0.99) 100%);
    z-index: 2;
}
.yb-banner-content {
    position: relative;
    z-index: 3;
    padding: 44px 56px;
    text-align: right;
    max-width: 520px;
    width: 100%;
    margin-right: auto;
}
.yb-banner-title {
    font-size: 27px;
    font-weight: 700;
    color: #f7f4ef;
    margin: 0 0 24px;
    line-height: 1.4;
}

/* Dark theme styling for Odoo Shop / Cart subpages */
.oe_website_sale,
.oe_website_sale .card,
.oe_website_sale .oe_product_cart {
    background-color: #141210 !important;
    color: var(--yb-text) !important;
    border-color: var(--yb-border) !important;
}
.oe_website_sale a,
.oe_website_sale h1, .oe_website_sale h2, .oe_website_sale h3, .oe_website_sale h4, .oe_website_sale h6 {
    color: var(--yb-text) !important;
}
.oe_website_sale .btn-primary {
    background-color: var(--yb-gold) !important;
    border-color: var(--yb-gold) !important;
    color: #161310 !important;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 992px) {
    .yb-cat-grid, .yb-prod-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .yb-nav {
        gap: 18px;
    }
    .yb-hero-title {
        font-size: 36px;
    }
}
@media (max-width: 600px) {
    .yb-header {
        padding: 14px 16px;
    }
    .yb-nav {
        display: none;
    }
    .yb-hero {
        min-height: 440px;
    }
    .yb-hero-title {
        font-size: 30px;
    }
    .yb-prod-grid {
        grid-template-columns: 1fr;
    }
    .yb-banner-content {
        padding: 28px 22px;
    }
    .yb-banner-title {
        font-size: 21px;
    }
}
