/*
Theme Name: Jawaahir Store
Theme URI: https://example.com/
Author: Custom
Description: A WooCommerce-ready jewelry storefront inspired by the structure of a modern Pakistani jewelry shop.
Version: 1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jawhara-style
*/

/* =========================================================
   GLOBAL
   ========================================================= */

:root {
    --gold: #b89050;
    --dark: #171717;
    --text: #292929;
    --muted: #777;
    --cream: #f7f4ee;
    --line: #e8e4dc;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.55;
    overflow-x: hidden;
}

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

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

.site-container {
    width: min(1240px, 92%);
    margin: 0 auto;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    background: #faf9f6;
    color: #555;
    border-bottom: 1px solid #e7e1d7;
    font-size: 12px;
}

.topbar-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-left a {
    margin-right: 22px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #666;
}

.topbar-right strong {
    color: #222;
    font-weight: 600;
}

.topbar-sep {
    color: #c7a15f;
}

.topbar a {
    margin-right: 20px;
}

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


/* =========================================================
   PROMO BAR
   ========================================================= */

.promo {
    background: #17130e;
    color: #fff;
    text-align: center;
    padding: 9px 10px;
    font-size: 11px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.promo strong {
    color: #d8b26a;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background: #fff;
    color: #171717;
    border-bottom: 1px solid #eee;
}

.header-inner {
    min-height: 104px;
    display: grid;
    grid-template-columns: 220px minmax(280px, 1fr) 250px;
    align-items: center;
    gap: 38px;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.site-logo img {
    display: block;
    width: 178px;
    height: auto;
    max-height: 82px;
    object-fit: contain;
    filter: invert(1);
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-wrap {
    position: relative;
    width: 100%;
}

.search-wrap input {
    width: 100%;
    height: 44px;
    padding: 13px 45px 13px 17px;
    border: 1px solid #d8d2c8;
    background: #fff;
    color: #222;
    font-size: 12px;
    letter-spacing: .2px;
}

.search-wrap input::placeholder {
    color: #888;
}

.search-wrap button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 42px;
    border: 0;
    background: transparent;
    color: #222;
    cursor: pointer;
    font-size: 18px;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
}

.header-action {
    text-align: center;
    color: #333;
    font-size: 10px;
    letter-spacing: .6px;
    text-transform: uppercase;
    min-width: 48px;
}

.header-action .icon {
    display: block;
    font-size: 21px;
    line-height: 1;
    margin-bottom: 7px;
    color: #1d1d1d;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {
    border-bottom: 1px solid #e8e4dc;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: visible;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-inner > li {
    position: relative;
    list-style: none;
}

.nav-inner > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 17px 19px;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
}

.nav-inner > li > a:hover,
.nav-inner > li.current-menu-item > a,
.nav-inner > li.current-menu-ancestor > a {
    color: #b89050;
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.nav-inner .sub-menu {
    position: absolute;
    z-index: 50;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #e8e1d7;
    box-shadow: 0 12px 30px rgba(0,0,0,.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .18s ease;
    list-style: none;
}

.nav-inner li:hover > .sub-menu,
.nav-inner li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-inner .sub-menu li {
    list-style: none;
}

.nav-inner .sub-menu a {
    display: block;
    padding: 11px 18px;
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: none;
    color: #333;
}

.nav-inner .sub-menu a:hover {
    background: #faf7f1;
    color: #b89050;
}

.nav-inner .menu-item-has-children > a:after {
    content: "⌄";
    font-size: 12px;
    color: #9b8a6c;
    margin-top: -3px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 550px;
    background:
        linear-gradient(90deg,rgba(0,0,0,.58),rgba(0,0,0,.08)),
        url('https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?auto=format&fit=crop&w=2000&q=85')
        center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-content {
    color: #fff;
    max-width: 590px;
    padding: 70px 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 11px;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(44px, 6vw, 74px);
    font-weight: 400;
    line-height: 1.03;
    margin: 16px 0;
}

.hero p {
    max-width: 500px;
    font-size: 16px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    background: var(--dark);
    color: #fff !important;
    padding: 13px 28px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    font-size: 11px;
    margin-top: 12px;
}

.btn:hover {
    background: var(--gold);
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 72px 0;
}

.section.cream {
    background: var(--cream);
}

.section-heading {
    text-align: center;
    margin-bottom: 36px;
}

.section-heading small {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
}

.section-heading h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 34px;
    margin: 8px 0;
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.woocommerce ul.products,
.woocommerce-page ul.products {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    float: none !important;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.shop-card {
    background: #fff;
    position: relative;
    min-width: 0;
}

.shop-card-image {
    position: relative;
    aspect-ratio: 1/1;
    background: #f2f0ec;
    overflow: hidden;
}

.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s;
}

.shop-card:hover .shop-card-image img {
    transform: scale(1.04);
}

.sale-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: var(--gold);
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    z-index: 2;
}

.heart {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 2;
}

.shop-card-info {
    padding: 13px 8px 18px;
}

.shop-card-info h3 {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 7px;
}

.price {
    font-size: 14px;
}

.price del {
    color: #999;
    margin-right: 7px;
}

.shop-card .button {
    background: var(--dark) !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-size: 10px !important;
    text-transform: uppercase;
    padding: 9px 14px !important;
    margin-top: 10px !important;
}


/* =========================================================
   PROMO SPLIT
   ========================================================= */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 470px;
}

.split-image {
    background:
        url('https://images.unsplash.com/photo-1611652022419-a9419f74343d?auto=format&fit=crop&w=1200&q=85')
        center/cover;
}

.split-content {
    background: var(--dark);
    color: #fff;
    padding: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-content h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 46px;
    line-height: 1.1;
    margin: 14px 0;
}

.split-content p {
    color: #ccc;
    max-width: 500px;
    line-height: 1.8;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
}

.category-card {
    height: 290px;
    position: relative;
    overflow: hidden;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    padding: 32px 14px 15px;
    background: linear-gradient(transparent,rgba(0,0,0,.72));
}

.category-caption h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 19px;
    margin: 0;
}

.category-caption span {
    font-size: 11px;
}


/* =========================================================
   BENEFITS
   ========================================================= */

.benefits {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefit {
    text-align: center;
    padding: 30px 15px;
    border-right: 1px solid var(--line);
}

.benefit:last-child {
    border-right: 0;
}

.benefit-icon {
    font-size: 25px;
}

.benefit h3 {
    font-size: 14px;
    margin: 8px 0 4px;
}

.benefit p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}


/* =========================================================
   NEWSLETTER
   ========================================================= */

.newsletter {
    background: var(--cream);
    text-align: center;
}

.newsletter form {
    max-width: 560px;
    margin: 25px auto 0;
    display: flex;
    border-bottom: 1px solid #333;
}

.newsletter input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 13px;
    outline: 0;
}

.newsletter button {
    border: 0;
    background: transparent;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #171717;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 45px;
}

.site-footer h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    margin: 0 0 18px;
}

.site-footer p,
.site-footer a {
    color: #aaa;
    font-size: 13px;
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin-bottom: 5px;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 18px;
    color: #777;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
}


/* =========================================================
   FOOTER SOCIAL
   ========================================================= */

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-social svg {
    width: 22px;
    height: 22px;
}


/* =========================================================
   WOOCOMMERCE
   ========================================================= */

.woocommerce .woocommerce-breadcrumb {
    font-size: 12px;
}

.woocommerce div.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--dark);
    color: #fff;
    border-radius: 0;
}

.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--gold);
}

.woocommerce span.onsale {
    background: var(--gold);
}

.woocommerce ul.products li.product a img {
    margin: 0;
}


/* =========================================================
   HOME PAGE CONTENT
   ========================================================= */

.jawaahir-home-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.jawaahir-home-content > * {
    max-width: 100%;
}

.jawaahir-home-content .wp-block-cover {
    margin: 0;
    width: 100%;
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 1000px) {

    .header-inner {
        display: grid;
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px 0;
        gap: 18px;
    }

    .site-logo {
        justify-content: center;
    }

    .search-wrap {
        width: 100%;
    }

    .header-actions {
        justify-content: center;
    }

    .nav-inner {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .nav-inner::-webkit-scrollbar {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE - MAIN FIX
   ========================================================= */

@media screen and (max-width: 700px) {

    /* ---------- GLOBAL ---------- */

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box !important;
    }

    img {
        max-width: 100% !important;
    }

    .site-container {
        width: 94% !important;
        max-width: 94% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }


    /* =====================================================
       TOP BAR
       ===================================================== */

    .topbar {
        width: 100% !important;
        overflow: hidden !important;
    }

    .topbar-inner {
        width: 94% !important;
        min-height: 32px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    .topbar-left {
        display: none !important;
    }

    .topbar-right {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        font-size: 9px !important;
        white-space: nowrap !important;
    }


    /* =====================================================
       PROMO
       ===================================================== */

    .promo {
        width: 100% !important;
        padding: 8px 5px !important;
        font-size: 9px !important;
        letter-spacing: .5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }


    /* =====================================================
       HEADER
       ===================================================== */

    .site-header {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .header-inner {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;

        /* REMOVE DESKTOP GRID */
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;

        align-items: stretch !important;
        gap: 14px !important;

        padding: 18px 0 !important;
        margin: 0 auto !important;
    }


    /* =====================================================
       LOGO
       ===================================================== */

    .site-logo {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        order: 1 !important;
    }

    .site-logo img {
        display: block !important;
        width: 150px !important;
        max-width: 150px !important;
        max-height: 65px !important;
        height: auto !important;
        margin: 0 auto !important;
    }


    /* =====================================================
       SEARCH
       ===================================================== */

    .search-wrap {
        width: 94% !important;
        max-width: 94% !important;
        margin: 0 auto !important;
        order: 2 !important;
    }

    .search-wrap input {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 43px !important;
        padding: 10px 45px 10px 13px !important;
        font-size: 12px !important;
    }

    .search-wrap button {
        width: 42px !important;
        right: 0 !important;
    }


    /* =====================================================
       ACCOUNT / WISHLIST / CART
       ===================================================== */

    .header-actions {
        width: 94% !important;
        max-width: 94% !important;
        margin: 0 auto !important;

        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;

        gap: 4px !important;
        order: 3 !important;
    }

    .header-action {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;

        text-align: center !important;
        font-size: 8px !important;
        letter-spacing: .3px !important;
    }

    .header-action .icon {
        display: block !important;
        font-size: 19px !important;
        line-height: 1 !important;
        margin-bottom: 4px !important;
    }


    /* =====================================================
       NAVIGATION
       ===================================================== */

    .main-nav {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .nav-inner {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        justify-content: flex-start !important;
        align-items: center !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        margin: 0 !important;
        padding: 0 3px !important;

        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .nav-inner::-webkit-scrollbar {
        display: none !important;
    }

    .nav-inner > li {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
    }

    .nav-inner > li > a {
        display: flex !important;
        width: auto !important;
        padding: 13px 11px !important;

        font-size: 9px !important;
        letter-spacing: .5px !important;

        white-space: nowrap !important;
    }

    .nav-inner .menu-item-has-children > a:after {
        display: none !important;
    }


    /* =====================================================
       HERO
       ===================================================== */

    .hero {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 430px !important;
    }

    .hero-content {
        width: 94% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 45px 0 !important;
    }

    .hero h1 {
        font-size: 42px !important;
    }

    .hero p {
        font-size: 14px !important;
    }


    /* =====================================================
       SECTIONS
       ===================================================== */

    .section {
        padding: 50px 0 !important;
    }

    .section-heading {
        margin-bottom: 25px !important;
    }

    .section-heading h2 {
        font-size: 29px !important;
    }


    /* =====================================================
       PRODUCTS
       ===================================================== */

    .product-grid {
        width: 100% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .shop-card {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .shop-card-info {
        padding: 10px 5px 15px !important;
    }

    .shop-card-info h3 {
        font-size: 13px !important;
    }


    /* =====================================================
       SPLIT SECTION
       ===================================================== */

    .split {
        width: 100% !important;
        grid-template-columns: 1fr !important;
    }

    .split-image {
        min-height: 300px !important;
    }

    .split-content {
        padding: 45px 25px !important;
    }

    .split-content h2 {
        font-size: 38px !important;
    }


    /* =====================================================
       CATEGORIES
       ===================================================== */

    .category-grid {
        width: 100% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .category-card {
        height: 210px !important;
    }


    /* =====================================================
       BENEFITS
       ===================================================== */

    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .benefit {
        padding: 25px 10px !important;
    }


    /* =====================================================
       NEWSLETTER
       ===================================================== */

    .newsletter form {
        width: 94% !important;
        max-width: 560px !important;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

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

    .footer-bottom {
        flex-direction: column !important;
        gap: 8px !important;
    }


    /* =====================================================
       WOOCOMMERCE
       ===================================================== */

    .woocommerce,
    .woocommerce-page {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .woocommerce ul.products {
        width: 100% !important;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media screen and (max-width: 380px) {

    .site-logo img {
        width: 135px !important;
        max-width: 135px !important;
    }

    .header-action {
        font-size: 7px !important;
    }

    .header-action .icon {
        font-size: 17px !important;
    }

    .nav-inner > li > a {
        padding-left: 9px !important;
        padding-right: 9px !important;
        font-size: 8px !important;
    }

    .hero h1 {
        font-size: 36px !important;
    }

    .product-grid {
        gap: 8px !important;
    }
}