/*
Theme Name:   Afshar Carpet
Theme URI:    https://afsharrugs.com
Description:  Afshar Carpet child theme — Persian, Afghan & Turkish rug store in Kent, WA.
Author:       Afshar Carpet
Author URI:   https://afsharrugs.com
Template:     astra
Version:      1.4.0
License:      GPL-2.0+
Text Domain:  afshar-child
*/

/* ============================================================
   0. DESIGN TOKENS
   ============================================================ */
:root {
    /* Identity matched to the logo — gold + warm black + cream */
    --afshar-red:        #1C1A16;   /* primary: warm black (buttons, header marks) */
    --afshar-red-dark:   #000000;
    --afshar-gold:       #C29A39;   /* logo gold accent */
    --afshar-gold-light: #D8B85A;
    --afshar-navy:       #1B1915;   /* near-black ink for headings */
    --afshar-cream:      #FAF6EC;   /* warm cream background */
    --afshar-dark-cream: #F1E8D5;
    --afshar-charcoal:   #2A2620;
    --afshar-muted:      #6E665A;
    --afshar-border:     #E4DAC6;
    --font-serif:        'Fraunces', 'Georgia', serif;
    --font-sans:         'Manrope', 'Helvetica Neue', system-ui, sans-serif;
    --radius:            14px;
    --shadow-sm:         0 4px 14px rgba(28,26,22,.08);
    --shadow-md:         0 16px 40px rgba(28,26,22,.16);
    --transition:        0.28s ease;
}

/* ============================================================
   1. GLOBAL
   ============================================================ */
body {
    font-family: var(--font-sans);
    color: var(--afshar-charcoal);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.woocommerce-loop-product__title {
    font-family: var(--font-serif);
    color: var(--afshar-navy);
}

a { color: var(--afshar-red); text-decoration: none; }
a:hover { color: var(--afshar-gold); }

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   2. BUTTONS
   ============================================================ */
.btn,
.ast-button,
.wc-block-components-button,
.button,
button[type="submit"] {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    border: none;
}

.btn-primary,
.ast-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--afshar-red);
    color: #fff !important;
}
.btn-primary:hover,
.ast-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: var(--afshar-gold);
    color: #1c1a16 !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--afshar-red) !important;
    border: 2px solid var(--afshar-red);
}
.btn-secondary:hover {
    background: var(--afshar-red);
    color: #fff !important;
}

.btn-gold {
    background: var(--afshar-gold);
    color: #fff !important;
}
.btn-gold:hover { background: #a67a29; }

/* ============================================================
   3. HEADER
   ============================================================ */
#masthead,
.site-header,
.ast-header-wrap {
    background: var(--afshar-navy) !important;
    border-bottom: 3px solid var(--afshar-gold);
}

.ast-site-identity .site-title a,
.ast-site-identity .site-title {
    font-family: var(--font-serif);
    color: #fff !important;
    font-size: 26px;
    letter-spacing: 1px;
}

.main-navigation a,
.ast-nav-menu > li > a {
    color: rgba(255,255,255,.9) !important;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .3px;
    transition: color var(--transition);
}
.main-navigation a:hover,
.ast-nav-menu > li > a:hover {
    color: var(--afshar-gold) !important;
}

/* Top utility bar */
.afshar-topbar {
    background: var(--afshar-red);
    color: rgba(255,255,255,.9);
    font-size: 13px;
    padding: 8px 0;
    text-align: center;
}
.afshar-topbar a { color: #fff; }
.afshar-topbar span { margin: 0 16px; }

/* ============================================================
   4. TRUST BAR
   ============================================================ */
.afshar-trust-bar {
    background: var(--afshar-dark-cream);
    border-top: 1px solid var(--afshar-border);
    border-bottom: 1px solid var(--afshar-border);
    padding: 16px 0;
}
.afshar-trust-bar .inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.afshar-trust-bar .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--afshar-navy);
    text-transform: uppercase;
    letter-spacing: .8px;
}
.afshar-trust-bar .trust-item svg,
.afshar-trust-bar .trust-item .icon {
    color: var(--afshar-gold);
    font-size: 18px;
}

/* ============================================================
   5. HERO SECTION
   ============================================================ */
.afshar-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--afshar-navy);
}
.afshar-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .35;
}
.afshar-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 80px 40px;
    color: #fff;
}
.afshar-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
}
.afshar-hero h1 em {
    color: var(--afshar-gold);
    font-style: normal;
}
.afshar-hero .sub {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,.85);
    margin-bottom: 36px;
}
.afshar-hero .cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================================
   6. SECTION HEADINGS
   ============================================================ */
.afshar-section {
    padding: 80px 0;
}
.afshar-section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--afshar-navy);
    text-align: center;
    margin-bottom: 12px;
}
.afshar-section-subtitle {
    text-align: center;
    color: var(--afshar-muted);
    font-size: 17px;
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.afshar-divider {
    width: 64px;
    height: 3px;
    background: var(--afshar-gold);
    margin: 16px auto 40px;
    border: none;
}

/* ============================================================
   7. SHOP BY ORIGIN CARDS
   ============================================================ */
.afshar-origin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .afshar-origin-grid { grid-template-columns: 1fr; }
}
.afshar-origin-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
    cursor: pointer;
}
.afshar-origin-card:hover { transform: translateY(-4px); }
.afshar-origin-card .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .4s ease;
}
.afshar-origin-card:hover .card-bg { transform: scale(1.05); }
.afshar-origin-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,35,64,.85) 0%, rgba(26,35,64,.2) 60%, transparent 100%);
}
.afshar-origin-card .card-content {
    position: relative;
    z-index: 2;
    padding: 28px 24px;
    color: #fff;
}
.afshar-origin-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 8px;
}
.afshar-origin-card p {
    font-size: 14px;
    color: rgba(255,255,255,.85);
    margin-bottom: 16px;
}
.afshar-origin-card .card-link {
    color: var(--afshar-gold);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   8. WHY HANDMADE — 4-ICON GRID
   ============================================================ */
.afshar-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
@media (max-width: 900px) {
    .afshar-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .afshar-why-grid { grid-template-columns: 1fr; }
}
.afshar-why-item .icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--afshar-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
}
.afshar-why-item h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--afshar-navy);
    margin-bottom: 10px;
}
.afshar-why-item p {
    font-size: 14px;
    color: var(--afshar-muted);
    line-height: 1.7;
}

/* ============================================================
   9. SHOWROOM / MAP SECTION
   ============================================================ */
.afshar-showroom {
    background: var(--afshar-cream);
}
.afshar-showroom-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 768px) {
    .afshar-showroom-inner { grid-template-columns: 1fr; }
}
.afshar-showroom .map-embed {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.afshar-showroom .map-embed iframe {
    width: 100%;
    height: 360px;
    border: none;
    display: block;
}
.afshar-showroom .showroom-info h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 20px;
}
.afshar-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 15px;
}
.afshar-hours-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--afshar-border);
}
.afshar-hours-table td:first-child {
    color: var(--afshar-muted);
    font-weight: 600;
    width: 40%;
}

/* ============================================================
   10. WOOCOMMERCE — PRODUCT CARDS
   ============================================================ */
.woocommerce ul.products li.product {
    border: 1px solid var(--afshar-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    background: #fff;
}
.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    padding: 12px 16px 4px;
    color: var(--afshar-navy);
}
.woocommerce ul.products li.product .price {
    color: var(--afshar-red);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0 16px;
}
.woocommerce ul.products li.product a.button {
    margin: 12px 16px 16px;
    width: calc(100% - 32px);
    text-align: center;
    background: var(--afshar-red);
    color: #fff;
    border-radius: var(--radius);
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: background var(--transition);
}
.woocommerce ul.products li.product a.button:hover {
    background: #6e1414;
}

/* Origin badge on product cards */
.afshar-origin-badge {
    display: inline-block;
    background: var(--afshar-gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 3px 8px;
    border-radius: 2px;
    margin: 4px 16px 8px;
}

/* ============================================================
   11. SINGLE PRODUCT PAGE
   ============================================================ */
.afshar-rug-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.afshar-rug-meta-table tr {
    border-bottom: 1px solid var(--afshar-border);
}
.afshar-rug-meta-table td {
    padding: 10px 0;
}
.afshar-rug-meta-table td:first-child {
    color: var(--afshar-muted);
    font-weight: 600;
    width: 40%;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .5px;
}

.afshar-request-video {
    background: var(--afshar-cream);
    border: 1px solid var(--afshar-border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
    text-align: center;
}
.afshar-request-video p {
    font-size: 14px;
    color: var(--afshar-muted);
    margin-bottom: 12px;
}

/* ============================================================
   12. BLOG
   ============================================================ */
.afshar-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 900px) {
    .afshar-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .afshar-blog-grid { grid-template-columns: 1fr; }
}
.afshar-blog-card {
    border: 1px solid var(--afshar-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow var(--transition);
}
.afshar-blog-card:hover { box-shadow: var(--shadow-md); }
.afshar-blog-card .card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.afshar-blog-card .card-body { padding: 20px; }
.afshar-blog-card .card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--afshar-red);
    margin-bottom: 8px;
}
.afshar-blog-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}
.afshar-blog-card h3 a { color: var(--afshar-navy); }
.afshar-blog-card h3 a:hover { color: var(--afshar-red); }
.afshar-blog-card .card-excerpt {
    font-size: 13px;
    color: var(--afshar-muted);
    line-height: 1.6;
}

/* ============================================================
   13. NEWSLETTER STRIP
   ============================================================ */
.afshar-newsletter {
    background: var(--afshar-red);
    padding: 64px 0;
    text-align: center;
    color: #fff;
}
.afshar-newsletter h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 12px;
}
.afshar-newsletter p {
    font-size: 17px;
    color: rgba(255,255,255,.85);
    margin-bottom: 32px;
}
.afshar-newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.afshar-newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius);
    border: none;
    font-size: 15px;
    min-width: 200px;
}
.afshar-newsletter-form button {
    background: var(--afshar-gold);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--transition);
}
.afshar-newsletter-form button:hover { background: #a67a29; }

/* ============================================================
   14. FOOTER
   ============================================================ */
.site-footer,
#colophon {
    background: var(--afshar-navy) !important;
    color: rgba(255,255,255,.75);
    padding-top: 60px;
}
.afshar-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 900px) {
    .afshar-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .afshar-footer-grid { grid-template-columns: 1fr; }
}
.afshar-footer-grid h4 {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 16px;
}
.afshar-footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.afshar-footer-grid ul li {
    margin-bottom: 10px;
}
.afshar-footer-grid ul a {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    transition: color var(--transition);
}
.afshar-footer-grid ul a:hover { color: var(--afshar-gold); }
.afshar-footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255,255,255,.65);
}
.afshar-footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,.5);
    flex-wrap: wrap;
    gap: 12px;
}
.afshar-social-links {
    display: flex;
    gap: 16px;
}
.afshar-social-links a {
    color: rgba(255,255,255,.6);
    font-size: 18px;
    transition: color var(--transition);
}
.afshar-social-links a:hover { color: var(--afshar-gold); }

/* ============================================================
   15. PAGE TEMPLATES
   ============================================================ */
/* Showroom page */
.afshar-showroom-page-hero {
    background: var(--afshar-navy);
    padding: 80px 0 60px;
    text-align: center;
    color: #fff;
}
.afshar-showroom-page-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 16px;
}
.afshar-showroom-page-hero p {
    color: rgba(255,255,255,.8);
    font-size: 18px;
}

/* City landing pages */
.afshar-city-hero {
    background: linear-gradient(135deg, var(--afshar-navy) 0%, #2a3a6b 100%);
    padding: 100px 0;
    color: #fff;
}
.afshar-city-hero h1 { color: #fff; font-family: var(--font-serif); }
.afshar-city-hero p { color: rgba(255,255,255,.85); font-size: 18px; }

/* ============================================================
   16. ACF RUG DETAILS PANEL (single product)
   ============================================================ */
.afshar-rug-specs {
    background: var(--afshar-cream);
    border: 1px solid var(--afshar-border);
    border-radius: 8px;
    padding: 24px;
    margin-top: 32px;
}
.afshar-rug-specs h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--afshar-gold);
    color: var(--afshar-navy);
}

/* ============================================================
   17. REVIEWS SECTION
   ============================================================ */
.afshar-reviews {
    background: var(--afshar-dark-cream);
}
.afshar-reviews-header {
    text-align: center;
    margin-bottom: 40px;
}
.afshar-star-rating {
    color: #FFC107;
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

/* ============================================================
   18. EDUCATIONAL CONTENT PAGES
   ============================================================ */
.afshar-guide-hero {
    background: var(--afshar-cream);
    border-bottom: 3px solid var(--afshar-gold);
    padding: 60px 0 40px;
}
.afshar-guide-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px;
}
.afshar-guide-content h2 {
    font-family: var(--font-serif);
    color: var(--afshar-navy);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--afshar-border);
}
.afshar-guide-content p { line-height: 1.8; margin-bottom: 20px; }
.afshar-guide-content ul {
    margin: 0 0 20px 24px;
    line-height: 1.9;
}
.afshar-expert-tip {
    background: var(--afshar-cream);
    border-left: 4px solid var(--afshar-gold);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin: 32px 0;
    font-style: italic;
    color: var(--afshar-muted);
}

/* ============================================================
   19. CONTACT PAGE
   ============================================================ */
.afshar-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
@media (max-width: 768px) {
    .afshar-contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   20. SEARCH BAR (home)
   ============================================================ */
.afshar-search-bar {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 12px;
    max-width: 720px;
    flex-wrap: wrap;
}
.afshar-search-bar select,
.afshar-search-bar input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: none;
    font-size: 14px;
    background: #fff;
    min-width: 140px;
}
.afshar-search-bar button {
    background: var(--afshar-gold);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
}

/* ============================================================
   21. UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-red    { color: var(--afshar-red); }
.text-gold   { color: var(--afshar-gold); }
.text-navy   { color: var(--afshar-navy); }
.bg-cream    { background: var(--afshar-cream); }
.bg-navy     { background: var(--afshar-navy); }
.bg-red      { background: var(--afshar-red); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.py-80 { padding-top: 80px; padding-bottom: 80px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }

/* ============================================================
   22. RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 768px) {
    .afshar-hero { min-height: 480px; }
    .afshar-hero .hero-content { padding: 60px 24px; }
    .afshar-hero h1 { font-size: 1.8rem; }
    .afshar-section { padding: 52px 0; }
}
@media (max-width: 480px) {
    .afshar-hero { min-height: 380px; }
    .afshar-trust-bar .inner { gap: 20px; }
}

/* ============================================================
   23. SHOP ARCHIVE
   ============================================================ */
.afshar-archive-banner {
    background: var(--afshar-navy);
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    position: relative;
}
.afshar-archive-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26,35,64,.65);
}
.afshar-archive-banner .container { position: relative; }
.afshar-archive-banner h1 {
    font-family: var(--font-serif);
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 0 0 12px;
}
.afshar-archive-banner p {
    color: rgba(255,255,255,.85);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.afshar-shop-wrap { padding: 48px 0 80px; }

.afshar-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--afshar-border);
    flex-wrap: wrap;
    gap: 12px;
}
.afshar-shop-toolbar .woocommerce-result-count {
    color: var(--afshar-muted);
    font-size: .9rem;
}

/* Product grid */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
@media (max-width: 1024px) { ul.products { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px)  { ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px)  { ul.products { grid-template-columns: 1fr !important; } }

/* ============================================================
   24. RUG CARD
   ============================================================ */
.afshar-rug-card {
    background: #fff;
    border: 1px solid var(--afshar-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}
.afshar-rug-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.afshar-rug-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.afshar-rug-card__thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--afshar-dark-cream);
}
.afshar-rug-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.afshar-rug-card:hover .afshar-rug-card__thumb img { transform: scale(1.04); }

.afshar-rug-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: var(--afshar-muted);
    font-family: var(--font-serif);
    font-size: .9rem;
}

.afshar-rug-card__hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(139,26,26,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.afshar-rug-card:hover .afshar-rug-card__hover-overlay { opacity: 1; }
.afshar-rug-card__cta {
    color: #fff;
    font-weight: 600;
    letter-spacing: .5px;
    border: 2px solid rgba(255,255,255,.8);
    padding: 8px 20px;
    border-radius: var(--radius);
    font-size: .875rem;
}

.afshar-badge--sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--afshar-red);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 3px 8px;
    border-radius: 2px;
    z-index: 2;
    text-transform: uppercase;
}

.afshar-rug-card__info {
    padding: 14px 16px 12px;
}
.afshar-rug-card__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--afshar-navy);
    margin: 0 0 4px;
    line-height: 1.35;
}
.afshar-rug-card__dims {
    font-size: .8rem;
    color: var(--afshar-muted);
    margin: 0 0 6px;
}
.afshar-rug-card__price {
    font-weight: 700;
    color: var(--afshar-red);
    font-size: 1rem;
    margin: 0;
}
.afshar-rug-card__price del { color: var(--afshar-muted); font-weight: 400; font-size: .85rem; }

.afshar-rug-card__actions {
    padding: 0 16px 16px;
}
.afshar-rug-card__actions .btn-sm {
    width: 100%;
    font-size: .85rem;
    padding: 8px 16px;
    text-align: center;
}

/* ============================================================
   25. SINGLE PRODUCT PAGE
   ============================================================ */
.afshar-single-product-wrap { padding: 40px 0 80px; }

.afshar-breadcrumb {
    margin-bottom: 24px;
    font-size: .85rem;
    color: var(--afshar-muted);
}
.afshar-breadcrumb a { color: var(--afshar-red); text-decoration: none; }
.afshar-breadcrumb a:hover { text-decoration: underline; }

.afshar-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 60px;
}
@media (max-width: 768px) {
    .afshar-product-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* WooCommerce gallery overrides inside our wrapper */
.afshar-product-gallery .woocommerce-product-gallery {
    position: sticky;
    top: 90px;
}

/* Summary area */
.afshar-product-summary .product_title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--afshar-navy);
    margin-bottom: 12px;
}
.afshar-product-summary .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--afshar-red);
    margin-bottom: 20px;
}
.afshar-product-summary .price del { font-size: 1rem; color: var(--afshar-muted); font-weight: 400; }

/* Rug specs table */
.afshar-rug-specs {
    background: var(--afshar-cream);
    border: 1px solid var(--afshar-border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
}
.afshar-rug-specs h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--afshar-navy);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--afshar-border);
}
.afshar-rug-meta-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.afshar-rug-meta-table td {
    padding: 7px 0;
    border-bottom: 1px solid var(--afshar-border);
    vertical-align: top;
}
.afshar-rug-meta-table td:first-child {
    font-weight: 600;
    color: var(--afshar-navy);
    width: 38%;
    padding-right: 12px;
}
.afshar-rug-meta-table td:last-child { color: var(--afshar-charcoal); }

/* Request video CTA */
.afshar-request-video {
    background: var(--afshar-navy);
    color: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
}
.afshar-request-video p { color: rgba(255,255,255,.9); margin-bottom: 8px; }
.afshar-request-video a { color: var(--afshar-gold); }
.afshar-request-video .btn-secondary {
    border-color: var(--afshar-gold);
    color: var(--afshar-gold);
    margin-top: 12px;
}
.afshar-request-video .btn-secondary:hover {
    background: var(--afshar-gold);
    color: var(--afshar-navy);
}

/* Related products heading */
.afshar-related-products h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--afshar-navy);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--afshar-border);
}

/* ============================================================
   26. VISIT SHOWROOM PAGE
   ============================================================ */
.afshar-showroom-hero {
    background: var(--afshar-navy);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}
.afshar-showroom-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem,4vw,3rem);
    margin-bottom: 16px;
}
.afshar-showroom-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.afshar-showroom-info {
    padding: 60px 0;
    background: var(--afshar-cream);
}
.afshar-showroom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 768px) { .afshar-showroom-grid { grid-template-columns: 1fr; } }

.afshar-hours-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.afshar-hours-table td { padding: 8px 0; border-bottom: 1px solid var(--afshar-border); font-size: .95rem; }
.afshar-hours-table td:first-child { font-weight: 600; color: var(--afshar-navy); }
.afshar-hours-table td:last-child { color: var(--afshar-muted); text-align: right; }

.afshar-map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.afshar-map-embed iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ============================================================
   17b. FULL-WIDTH LAYOUT FIX
   Astra makes ".site-content .ast-container" a flex container, which
   turns our stacked full-bleed sections into narrow columns. Force a
   normal block flow on the home page and full-width landing templates.
   ============================================================ */
.home .site-content > .ast-container,
.ast-page-builder-template .site-content > .ast-container,
.page-template-front-page .site-content > .ast-container,
.page-template-page-visit-showroom .site-content > .ast-container,
.page-template-page-city-landing .site-content > .ast-container {
    display: block !important;
    flex-direction: row !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}
/* Each home section spans the full width */
.afshar-hero,
.afshar-trust-bar,
.afshar-section,
.afshar-our-story,
.afshar-featured,
.afshar-showroom-strip,
.afshar-reviews,
.afshar-latest-blog,
.afshar-newsletter {
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   18. TEXT EFFECTS & SCROLL ANIMATIONS
   ============================================================ */

/* Scroll-reveal: elements fade + rise into view */
.afshar-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1);
    will-change: opacity, transform;
}
.afshar-reveal.afshar-revealed {
    opacity: 1;
    transform: none;
}

/* Hero text: staggered animated entrance on load */
@keyframes afsharFadeUp {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: translateY(0); }
}
.afshar-hero-animate h1,
.afshar-hero-animate .sub,
.afshar-hero-animate .cta-group,
.afshar-hero-animate .afshar-search-bar {
    opacity: 0;
    animation: afsharFadeUp .9s cubic-bezier(.16,.84,.44,1) forwards;
}
.afshar-hero-animate h1            { animation-delay: .10s; }
.afshar-hero-animate .sub          { animation-delay: .30s; }
.afshar-hero-animate .cta-group    { animation-delay: .50s; }
.afshar-hero-animate .afshar-search-bar { animation-delay: .68s; }

/* Hero headline: animated gold gradient sheen on the emphasized words */
.afshar-hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--afshar-gold) 20%, #f3d79a 40%, var(--afshar-gold) 60%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: afsharSheen 5s linear infinite;
}
@keyframes afsharSheen {
    to { background-position: 220% center; }
}

/* Section titles: animated underline grows in when revealed */
.afshar-section-title { position: relative; }
.afshar-section-title.afshar-reveal::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--afshar-gold), var(--afshar-red));
    transition: width .8s cubic-bezier(.16,.84,.44,1) .15s;
}
.afshar-section-title.afshar-revealed::after { width: 72px; }

/* Origin cards: smooth lift + image zoom on hover */
.afshar-origin-card { transition: transform .45s ease, box-shadow .45s ease; }
.afshar-origin-card .card-bg { transition: transform 1.2s cubic-bezier(.16,.84,.44,1); }
.afshar-origin-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.afshar-origin-card:hover .card-bg { transform: scale(1.08); }

/* Buttons: subtle interactive shine */
.btn { transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.btn:hover { transform: translateY(-2px); }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .afshar-reveal, .afshar-hero-animate h1, .afshar-hero-animate .sub,
    .afshar-hero-animate .cta-group, .afshar-hero-animate .afshar-search-bar {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .afshar-hero h1 em { animation: none; }
}

/* ============================================================
   19. CUSTOM HEADER + FOOTER (replaces Astra's empty header/footer)
   ============================================================ */
/* Hide Astra's own (empty) header & footer */
#masthead,
.site-header,
.ast-above-header-wrap,
#colophon,
footer.site-footer:not(.afshar-site-footer) { display: none !important; }

/* Topbar — refreshed */
.afshar-topbar {
    background: var(--afshar-navy);
    color: rgba(255,255,255,.86);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .2px;
}
.afshar-topbar .container {
    display: flex; flex-wrap: wrap; gap: 8px 28px;
    align-items: center; justify-content: center;
    padding-top: 9px; padding-bottom: 9px;
}
.afshar-topbar a { color: #fff; }
.afshar-topbar a:hover { color: var(--afshar-gold); }

/* Sticky custom header */
.afshar-header {
    position: sticky; top: 0; z-index: 999;
    background: rgba(246,242,234,.92);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--afshar-border);
}
.afshar-header.afshar-sticky { box-shadow: var(--shadow-sm); }
.afshar-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding-top: 14px; padding-bottom: 14px;
}
/* Logo */
.afshar-logo { display: flex; align-items: center; gap: 12px; }
.afshar-logo-img { height: 58px; width: auto; display: block; }
@media (max-width: 980px) { .afshar-logo-img { height: 48px; } }
@media (max-width: 420px) { .afshar-logo-img { height: 42px; } }
.afshar-logo-mark {
    width: 46px; height: 46px; flex: none;
    display: grid; place-items: center;
    font-family: var(--font-serif); font-weight: 700; font-size: 24px;
    color: #fff; background: var(--afshar-red);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 4px 12px rgba(20,82,74,.3);
}
.afshar-logo-text { display: flex; flex-direction: column; line-height: 1; }
.afshar-logo-text strong {
    font-family: var(--font-serif); font-weight: 700;
    font-size: 23px; color: var(--afshar-navy); letter-spacing: .3px;
}
.afshar-logo-text em {
    font-style: normal; font-size: 11px; font-weight: 700;
    letter-spacing: 4px; text-transform: uppercase; color: var(--afshar-gold);
}
/* Nav */
.afshar-nav .afshar-menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 4px; align-items: center;
}
.afshar-menu li { margin: 0; }
.afshar-menu a {
    display: block; padding: 10px 16px;
    color: var(--afshar-charcoal); font-weight: 600; font-size: 15px;
    border-radius: 999px; transition: all var(--transition);
}
.afshar-menu a:hover { color: var(--afshar-gold); background: rgba(194,154,57,.14); }
/* Header actions */
.afshar-header-actions { display: flex; align-items: center; gap: 14px; }
.afshar-header-phone {
    font-weight: 700; font-size: 14px; color: var(--afshar-red);
    white-space: nowrap;
}
.afshar-header-phone:hover { color: var(--afshar-gold); }
.afshar-header-cart {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--afshar-red); color: #fff !important;
    transition: all var(--transition);
}
.afshar-header-cart:hover { background: var(--afshar-red-dark); transform: translateY(-2px); }
.afshar-header-cart .dashicons { font-size: 20px; width: 20px; height: 20px; }
.afshar-menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 8px; cursor: pointer;
}
.afshar-menu-toggle span {
    width: 26px; height: 2px; background: var(--afshar-navy);
    border-radius: 2px; transition: all var(--transition);
}

/* Footer */
.afshar-site-footer {
    background: var(--afshar-navy);
    color: rgba(255,255,255,.72);
    padding: 64px 0 28px;
    font-size: 14.5px;
    margin-top: 0;
}
.afshar-site-footer h4 {
    color: #fff; font-family: var(--font-serif);
    font-size: 19px; margin: 0 0 16px;
}
.afshar-footer-grid {
    display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
    gap: 24px 36px; align-items: start;
}
.afshar-footer-brand { padding-right: 12px; }
.afshar-site-footer ul { list-style: none; margin: 0; padding: 0; }
.afshar-site-footer li { margin-bottom: 9px; }
.afshar-site-footer a { color: rgba(255,255,255,.72); transition: color var(--transition); }
.afshar-site-footer a:hover { color: var(--afshar-gold); }
.afshar-footer-brand p { line-height: 1.7; margin-bottom: 14px; }
.afshar-social-links { display: flex; gap: 12px; }
.afshar-social-links a {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255,255,255,.08); color: #fff;
}
.afshar-social-links a:hover { background: var(--afshar-gold); color: #fff; }
.afshar-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 44px; padding-top: 22px;
    text-align: center; color: rgba(255,255,255,.5); font-size: 13px;
}
.afshar-footer-bottom p { margin: 4px 0; }

/* Modern hero overlay tint (teal) */
.afshar-hero { background: var(--afshar-navy); }
.afshar-hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(105deg, rgba(20,18,14,.90) 0%, rgba(20,18,14,.62) 50%, rgba(20,18,14,.30) 100%);
}
.afshar-hero .hero-bg { opacity: .9; }
.afshar-hero .container { position: relative; z-index: 2; }

/* Pill buttons, refined */
.btn, .ast-button, .woocommerce a.button, .woocommerce button.button {
    border-radius: 999px; letter-spacing: .3px;
}

/* Responsive header */
@media (max-width: 980px) {
    .afshar-header-phone { display: none; }
    .afshar-header-inner {
        width: 100%; max-width: 100%; box-sizing: border-box;
        padding-left: 16px; padding-right: 16px; margin: 0;
    }
    .afshar-header-actions { flex: 0 0 auto; }
    .afshar-nav {
        display: none;
        position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 82vw);
        background: var(--afshar-cream); padding: 88px 24px 24px;
        box-shadow: var(--shadow-md); z-index: 998;
    }
    .afshar-nav.afshar-open { display: block; animation: afsharFadeUp .25s ease; }
    .afshar-menu { flex-direction: column; align-items: stretch; gap: 2px; }
    .afshar-menu a { padding: 14px 16px; font-size: 17px; }
    .afshar-menu-toggle { display: flex; z-index: 1000; }
    .afshar-menu-toggle.afshar-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .afshar-menu-toggle.afshar-open span:nth-child(2) { opacity: 0; }
    .afshar-menu-toggle.afshar-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 1080px) {
    .afshar-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .afshar-footer-brand { grid-column: 1 / -1; padding-right: 0; }
}
@media (max-width: 680px) {
    .afshar-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 420px) {
    .afshar-footer-grid { grid-template-columns: 1fr; }
    .afshar-logo-mark { width: 40px; height: 40px; font-size: 21px; }
}

/* ============================================================
   20. MOBILE RESPONSIVE REFINEMENTS + POLISH
   ============================================================ */
html, body { overflow-x: clip; }

/* Topbar: tidy, wraps cleanly, never overflows on phones */
.afshar-topbar .container { flex-wrap: wrap; }
.afshar-topbar span { white-space: nowrap; margin: 0; }
.afshar-topbar { max-width: 100%; }

/* ---- Header search drop-down ---- */
.afshar-search-toggle {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: transparent; border: 1px solid var(--afshar-border);
    color: var(--afshar-navy); transition: all var(--transition);
}
.afshar-search-toggle:hover { background: var(--afshar-gold); color: #fff; border-color: var(--afshar-gold); }
.afshar-search-toggle .dashicons { font-size: 20px; width: 20px; height: 20px; }
.afshar-search-drop {
    max-height: 0; overflow: hidden;
    transition: max-height .32s ease;
    background: var(--afshar-cream);
    border-top: 0 solid var(--afshar-border);
}
.afshar-search-open .afshar-search-drop {
    max-height: 130px; border-top-width: 1px;
}
.afshar-search-form {
    display: flex; gap: 10px;
    max-width: 760px; margin: 0 auto; padding: 18px 24px;
}
.afshar-search-form input[type="search"] {
    flex: 1; padding: 13px 18px; font-size: 15px;
    border: 1px solid var(--afshar-border); border-radius: 999px;
    background: #fff; color: var(--afshar-charcoal);
}
.afshar-search-form input[type="search"]:focus { outline: 2px solid var(--afshar-gold); border-color: var(--afshar-gold); }
.afshar-search-form button {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    padding: 13px 26px; border-radius: 999px;
    background: var(--afshar-red); color: #fff; font-weight: 700; cursor: pointer; border: 0;
}
.afshar-search-form button:hover { background: var(--afshar-gold); color: #1c1a16; }
.afshar-search-form button .dashicons { font-size: 18px; width: 18px; height: 18px; }
@media (max-width: 560px) {
    .afshar-search-form { padding: 14px; gap: 8px; }
    .afshar-search-form button span:not(.dashicons) { display: none; }
}

/* ---- Contact form ---- */
.afshar-contact-form .af-row { display: flex; gap: 16px; margin-bottom: 16px; }
.afshar-contact-form .af-row > * { flex: 1; }
.afshar-contact-form input,
.afshar-contact-form select,
.afshar-contact-form textarea {
    width: 100%; padding: 13px 16px; font-size: 15px; font-family: var(--font-sans);
    border: 1px solid var(--afshar-border); border-radius: 10px;
    background: #fff; color: var(--afshar-charcoal); box-sizing: border-box;
}
.afshar-contact-form textarea { margin-bottom: 16px; resize: vertical; }
.afshar-contact-form input:focus,
.afshar-contact-form select:focus,
.afshar-contact-form textarea:focus { outline: 2px solid var(--afshar-gold); border-color: var(--afshar-gold); }
.afshar-contact-form button { border: 0; cursor: pointer; }
.afshar-form-success {
    background: #eef7ee; border: 1px solid #bcd9bc; color: #245024;
    padding: 18px 20px; border-radius: 12px; margin-bottom: 16px;
}
.afshar-form-error {
    background: #fbeaea; border: 1px solid #e3b7b7; color: #8a2b2b;
    padding: 14px 18px; border-radius: 12px; margin-bottom: 16px;
}
@media (max-width: 560px) {
    .afshar-contact-form .af-row { flex-direction: column; gap: 16px; }
}
@media (max-width: 700px) {
    .afshar-topbar { font-size: 12px; }
    .afshar-topbar .container { gap: 4px 16px; padding: 8px 14px; }
}
@media (max-width: 520px) {
    .afshar-topbar { font-size: 11.5px; }
    .afshar-topbar .container { gap: 3px 12px; }
    .afshar-topbar span:nth-child(3) { display: none; } /* hide hours line on small phones */
}

/* Header: comfortable sizing + keep actions on-screen */
@media (max-width: 980px) {
    .afshar-header-inner { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
    .afshar-logo-mark { width: 42px; height: 42px; font-size: 21px; }
    .afshar-logo-text strong { font-size: 20px; }
    .afshar-header-actions { gap: 10px; }
    .afshar-header-cart { width: 42px; height: 42px; }
}

/* Hero: tighter, full-width CTAs on phones */
@media (max-width: 600px) {
    .afshar-hero { min-height: 460px; }
    .afshar-hero .hero-content { padding: 56px 0; max-width: 100%; }
    .afshar-hero h1 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
    .afshar-hero .sub { font-size: 16px; }
    .afshar-hero .cta-group { flex-direction: column; gap: 12px; }
    .afshar-hero .cta-group .btn { width: 100%; text-align: center; }
}

/* Hero search bar: stack on mobile */
.afshar-search-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.afshar-search-bar select,
.afshar-search-bar button { flex: 1 1 auto; }
@media (max-width: 600px) {
    .afshar-search-bar { flex-direction: column; }
    .afshar-search-bar select,
    .afshar-search-bar input,
    .afshar-search-bar button { width: 100%; flex: 1 1 100%; }
}

/* Grids collapse cleanly on mobile */
@media (max-width: 880px) {
    .afshar-origin-grid { grid-template-columns: 1fr 1fr; }
    .afshar-why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .afshar-origin-grid,
    .afshar-why-grid { grid-template-columns: 1fr; gap: 18px; }
    .afshar-section { padding: 48px 0; }
    .afshar-section-title { font-size: clamp(1.45rem, 6vw, 2rem); }
    /* Our-story / generic 2-col grids -> 1 col */
    .afshar-section .container > div[style*="grid-template-columns:1fr 1fr"],
    .afshar-section .container > div[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }
    .afshar-section .container > div[style*="1fr 1fr"] > div { margin-bottom: 24px; }
}

/* ---- Beautification polish ---- */
/* Cards: deeper rounding + smoother shadow */
.afshar-origin-card { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.afshar-origin-card .card-content { padding: 26px; }
.afshar-origin-card h3 { font-family: var(--font-serif); font-size: 1.5rem; }
.afshar-origin-card .card-link { font-weight: 700; letter-spacing: .3px; }

/* Section dividers as a gradient pill */
.afshar-divider {
    width: 64px; height: 4px; border: 0; border-radius: 4px;
    margin: 0 auto 40px;
    background: linear-gradient(90deg, var(--afshar-gold), var(--afshar-red));
}

/* Trust bar: refined chips */
.afshar-trust-bar { background: var(--afshar-cream); border-bottom: 1px solid var(--afshar-border); }
.afshar-trust-bar .inner { gap: 14px 28px; }
.afshar-trust-bar .trust-item { font-weight: 600; color: var(--afshar-charcoal); }
.afshar-trust-bar .icon { color: var(--afshar-red); }

/* Why-choose icons: circular tinted badges */
.afshar-why-item .icon-wrap {
    width: 76px; height: 76px; margin: 0 auto 18px;
    display: grid; place-items: center;
    font-size: 32px; border-radius: 50%;
    background: rgba(194,154,57,.12);
    border: 1px solid rgba(194,154,57,.28);
}
.afshar-why-item h4 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--afshar-navy); }

/* Buttons: refined shadow */
.btn-primary { box-shadow: 0 8px 22px rgba(28,26,22,.22); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(28,26,22,.3); }

/* Nicer links inside content */
.afshar-guide-content a:not(.btn) { color: var(--afshar-red); font-weight: 600; }
.afshar-guide-content a:not(.btn):hover { color: var(--afshar-gold); }

/* Footer credit */
.afshar-footer-bottom .afshar-credit { margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,.45); }
.afshar-footer-bottom .afshar-credit a { color: var(--afshar-gold); font-weight: 600; }
.afshar-footer-bottom .afshar-credit a:hover { color: var(--afshar-gold-light); }

/* ============================================================
   21. LUXURY HEADER + FOOTER REFINEMENTS
   ============================================================ */
/* Header — crisp cream, elegant spacing, gold hairline */
.afshar-header {
    background: var(--afshar-cream);
    backdrop-filter: none;
    border-bottom: 1px solid var(--afshar-border);
    box-shadow: 0 2px 0 rgba(194,154,57,.18), 0 6px 18px rgba(28,26,22,.04);
}
.afshar-header-inner { padding-top: 18px; padding-bottom: 18px; }
.afshar-logo-img { height: 66px; }
@media (max-width: 980px){ .afshar-logo-img { height: 52px; } }

/* Nav — uppercase, tracked, gold underline grow */
.afshar-menu a {
    text-transform: uppercase;
    font-size: 13px; font-weight: 600; letter-spacing: 1.4px;
    color: var(--afshar-charcoal); position: relative; background: transparent;
}
.afshar-menu a::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
    height: 1.5px; background: var(--afshar-gold);
    transform: scaleX(0); transform-origin: center; transition: transform .35s ease;
}
.afshar-menu a:hover { background: transparent; color: var(--afshar-red); }
.afshar-menu a:hover::after { transform: scaleX(1); }
@media (max-width: 980px){
    .afshar-menu a { letter-spacing: 1px; }
    .afshar-menu a::after { display: none; }
}

/* Topbar — thin gold underline accent */
.afshar-topbar { border-bottom: 1px solid rgba(194,154,57,.35); letter-spacing: .3px; }

/* Search + cart buttons — refined */
.afshar-search-toggle { border-color: rgba(28,26,22,.18); }

/* Footer — luxury: gold top rule, refined headings, generous spacing */
.afshar-site-footer {
    background:
      radial-gradient(120% 140% at 50% -20%, rgba(194,154,57,.10), transparent 60%),
      var(--afshar-navy);
    border-top: 3px solid var(--afshar-gold);
    padding: 72px 0 30px;
}
.afshar-footer-brand h4 {
    font-family: var(--font-serif); font-size: 24px; color: #fff;
    letter-spacing: .3px; margin-bottom: 18px;
}
.afshar-footer-grid > div:not(.afshar-footer-brand) h4 {
    font-family: var(--font-sans); font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.6px; font-size: 12.5px;
    color: var(--afshar-gold); padding-bottom: 14px; position: relative; margin-bottom: 18px;
}
.afshar-footer-grid > div:not(.afshar-footer-brand) h4::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px;
    background: rgba(194,154,57,.55);
}
.afshar-site-footer li { margin-bottom: 11px; }
.afshar-site-footer a { color: rgba(255,255,255,.66); font-size: 14px; }
.afshar-site-footer a:hover { color: var(--afshar-gold); padding-left: 3px; transition: all .2s ease; }
.afshar-footer-brand p { color: rgba(255,255,255,.62); }
.afshar-social-links a { background: rgba(255,255,255,.07); border: 1px solid rgba(194,154,57,.25); }
.afshar-social-links a:hover { background: var(--afshar-gold); border-color: var(--afshar-gold); padding-left: 0; }
.afshar-footer-bottom { border-top: 1px solid rgba(194,154,57,.18); margin-top: 52px; padding-top: 26px; }
