
/*
Theme Name: Nazpoosh Child
Description: Lightweight custom theme for Nazpoosh Gallery
Author: Nazpoosh
Version: 1.0.0
Template: storefront
Text Domain: nazpoosh-child
*/

/* Nazpoosh Brand Colors */
:root {
    --nazpoosh-red: #FA0123;
    --nazpoosh-navy: #021440;
    --nazpoosh-white: #FFFFFF;
}

body {
    direction: rtl;
    text-align: right;
}
body #secondary {
    display: none !important;
}

body .site-content .col-full {
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}
/* Hide category product counts */
.woocommerce .product-category .count {
    display: none !important;
}


/* ===== Nazpoosh Header ===== */

.site-header {
    padding: 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #eee;
}

.site-header .col-full {
    max-width: 1400px;
    margin: auto;
    padding: 0 25px;
}

.nazpoosh-header {
    background: var(--nazpoosh-white);
    display: flex !important;
    flex-direction: row !important;
    direction: rtl;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 30px;
    width: 100%;
    padding: 20px 0;
    background: #fff;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.nazpoosh-logo {
    flex-shrink: 0;
}
.nazpoosh-logo-img {
  display: block !important;
    width: auto !important;
    height: 60px !important;
    max-width: 100% !important;
    object-fit: contain;
}

.nazpoosh-logo a {
     color: var(--nazpoosh-navy);
     font-weight: 400 !important;
    text-decoration: none !important;
    font-family: 'NazpooshLalezar', Tahoma, sans-serif !important;
   font-size: 34px !important;
  
  
}

.nazpoosh-logo span {
    color: var(--nazpoosh-red);
}

.nazpoosh-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
     gap: 38px !important;
    flex: 1;
    
}

.nazpoosh-nav a {
    color: #021440 !important;
     font-size: 21px !important;
    text-decoration: none !important;
     font-family: 'NazpooshLalezar', Tahoma, sans-serif !important;
    font-weight: 400 !important;
    line-height: 0.6;
   
}

.nazpoosh-nav a:hover {
    color: #FA0123 !important;
}

.nazpoosh-actions {
    display: flex !important;
    align-items: center;
      gap: 4px !important;
}

.nazpoosh-actions a {
     width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #021440 !important;
    text-decoration: none;
}

.nazpoosh-actions svg {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

.nazpoosh-actions a:hover {
    color: #FA0123 !important;
}
.nazpoosh-mobile-menu {
    display: none ;
}



/* Mobile Typography */
/* ===== Nazpoosh Persian Font ===== */

@font-face {
    font-family: 'NazpooshLalezar';
    src: url('./fonts/Lalezar-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== Nazpoosh Product Categories ===== */

/* Center category grid */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 35px 30px !important;

    width: 100% !important;
    max-width: 1050px !important;

    margin: 30px auto 50px !important;
    padding: 0 !important;

    float: none !important;
    clear: both;
    direction: rtl;
}
/* Category items */
.woocommerce ul.products li.product-category {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;

    display: flex !important;
    justify-content: center;
    text-align: center !important;
}

/* Category links */
.woocommerce ul.products li.product-category a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-decoration: none !important;
}

/* Category images */
.woocommerce ul.products li.product-category img {
    width: 220px !important;
    height: 220px !important;
    max-width: 100% !important;

    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 15px !important;

    border-radius: 12px;
}

/* Category titles */
.woocommerce ul.products li.product-category h2,
.woocommerce ul.products li.product-category
.woocommerce-loop-category__title {
    font-family: 'NazpooshLalezar', Tahoma, sans-serif !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;

    color: #021440 !important;
    text-align: center !important;
    margin: 0 !important;
}

/* Hide product counts */
.woocommerce ul.products li.product-category mark {
    display: none !important;
}

/* Hover effect */
.woocommerce ul.products li.product-category img {
    transition: transform 0.25s ease;
}

.woocommerce ul.products li.product-category a:hover img {
    transform: scale(1.04);
}

.woocommerce ul.products li.product-category a:hover h2 {
    color: #FA0123 !important;
}


/* Tablet */
@media (max-width: 991px) {
    
      /* Full-width main content */
    body.page #primary,
    body.page .content-area {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 auto !important;
    }
     /* Center content container */
    body.page .site-content .col-full {
        width: 100% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
    }
     /* Center category grid */
    body.page .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        direction: rtl;

        width: 100% !important;
        max-width: 850px !important;
        margin: 15px auto !important;
        padding: 0 !important;

        gap: 12px 30px !important;
        justify-content: center !important;
        align-items: start !important;
    }

    /* Category items */
    body.page .woocommerce ul.products li.product-category {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        clear: none !important;
        text-align: center !important;
    }

    /* Images */
    body.page .woocommerce ul.products li.product-category img {
        width: 165px !important;
        height: 165px !important;
        max-width: 100% !important;
        object-fit: contain !important;
        margin: 0 auto 5px !important;
    }

    /* Titles */
    body.page .woocommerce ul.products li.product-category h2 {
        font-family: 'NazpooshLalezar', Tahoma, sans-serif !important;
        font-size: 23px !important;
        line-height: 1.4 !important;
        color: #021440 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    /* Page title */
    body.page .entry-title {
        text-align: center !important;
        font-size: 30px !important;
        margin-bottom: 10px !important;
    }

    body.page .entry-header {
        margin-bottom: 10px !important;
    }
  
}


/* Mobile */
@media (max-width: 768px) {
     body .site-content .col-full {
        padding-left: 15px;
        padding-right: 15px;
    }
    .nazpoosh-logo a {
        font-size: 29px !important;
    }
    .nazpoosh-header {
         gap: 12px;
        padding: 12px 0;
    }
    .site-header .col-full {
        padding: 0 15px;
    }
   
     .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px 12px !important;
        margin-top: 20px !important;
    }

    .woocommerce ul.products li.product-category img {
        width: 145px !important;
        height: 145px !important;
    }

    .woocommerce ul.products li.product-category h2 {
        font-size: 21px !important;
    }
   
/* ===== FINAL NAZPOOSH HAMBURGER ===== */

    .nazpoosh-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 6px !important;
    }
   .nazpoosh-logo-img {
      
       display: block !important;
        width: auto !important;
        height: 42px !important;
        max-width: 90px !important;
        object-fit: contain;
    }
    button.nazpoosh-mobile-menu {
        
        display: block !important;
        position: relative !important;
        flex: 0 0 44px !important;

        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        flex: 0 0 32px !important;

        order: 1;
        margin: 0 !important;
        flex-shrink: 0;
        padding: 0 !important;
       
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
       
       

        appearance: none !important;
        cursor: pointer;
    }

    /* Remove unwanted elements */

    button.nazpoosh-mobile-menu::before,
    button.nazpoosh-mobile-menu::after,
    button.nazpoosh-mobile-menu > span::before,
    button.nazpoosh-mobile-menu > span::after {
        content: none !important;
        display: none !important;
    }

    /* Three fixed-position lines */

    button.nazpoosh-mobile-menu > span {
        display: block !important;
        position: absolute !important;

        left: 9px !important;
        right: auto !important;

         width: 20px !important;
        height: 2px !important;
        left: 6px !important;
        border-radius: 2px !important;
        min-height: 0 !important;

        padding: 0 !important;
        margin: 0 !important;

        background: #021440 !important;
        border: none !important;
        box-shadow: none !important;

        opacity: 1;
        transform: none;
        transition: top .25s ease,
        transform .25s ease,
        opacity .2s ease;
        
        
    }

    /* Closed state */

    button.nazpoosh-mobile-menu > span:nth-child(1) {
         top: 9px !important;
    }

    button.nazpoosh-mobile-menu > span:nth-child(2) {
         top: 15px !important;
    }

    button.nazpoosh-mobile-menu > span:nth-child(3) {
        top: 21px !important;
    }

    /* Open state */

 /* Open X */

    button.nazpoosh-mobile-menu[aria-expanded="true"]
    > span:nth-child(1) {
        top: 15px !important;
        transform: rotate(45deg) !important;
    }

    button.nazpoosh-mobile-menu[aria-expanded="true"]
    > span:nth-child(2) {
        opacity: 0 !important;
    }

    button.nazpoosh-mobile-menu[aria-expanded="true"]
    > span:nth-child(3) {
        top: 15px !important;
        transform: rotate(-45deg) !important;
    }

    button.nazpoosh-mobile-menu:hover,
    button.nazpoosh-mobile-menu:active {
        background: transparent !important;
        box-shadow: none !important;
          border: 0 !important;
    }
    button.nazpoosh-mobile-menu:focus:not(:focus-visible) {
        outline: none !important;
    }

    button.nazpoosh-mobile-menu:focus-visible {
        outline: 2px solid #021440 !important;
        outline-offset: 3px;
    }

    .nazpoosh-nav {
        display: none !important;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 9999;
        background: white;
        padding: 15px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
    }

    .nazpoosh-nav.is-open {
        display: flex ;
    }

    .nazpoosh-nav a {
        padding: 12px;
        border-bottom: 1px solid #eee;
    }

    .nazpoosh-actions {
        gap: 14px;
        order: 3;
        margin-right: auto !important;
        margin-left: 0 !important;
        
    }

    .nazpoosh-actions svg {
        width: 21px !important;
        height: 21px !important;
    }

    .nazpoosh-actions a {
        font-size: 20px;
         width: 29px !important;
        height: 32px !important;
    }
   .nazpoosh-logo {
        order: 2;
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        flex-shrink: 0;
    }




  
}









