/*
Theme Name:     Storefront Child
Theme URI:      https://woocommerce.com/products/storefront/
Description:    My custom child theme for Storefront.
Author:         Naveed Ahmad
Author URI:     https://naveedahmad.pk/
Template:       storefront
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    storefront-child
*/

/* Custom CSS starts below this line */

.col-full{
	max-width: 100em;
}


main .col-full{
	margin: 0;
}

/* Hide any search box inside the header */
.site-header .site-search,
.site-header .woocommerce-product-search,
.site-header .widget_product_search,
.site-header .dgwt-wcas-search-wrapp,   /* FiboSearch */
.site-header .yith-ajaxsearchform-container, /* YITH */
.site-header .aws-container,             /* Advanced Woo Search */
.site-header form.search-form {
  display: none !important;
}
 .page-template-template-homepage:not(.has-post-thumbnail) .site-main {
    padding-top: 1em;
}
ul.products li.product img, ul.products .wc-block-grid__product img, .wc-block-grid__products li.product img, .wc-block-grid__products .wc-block-grid__product img {
    border-radius: 15px;
}

.page-template-template-homepage .entry-content, .page-template-template-homepage .entry-header {
    max-width: 100%;
}
a:focus,input:focus,textarea:focus,button:focus {
    outline: none;
}
body, button, input, textarea {
    font-family: "Segoe UI", "Source Sans Pro", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: 100;
}
.eng{
	font-family: "Segoe UI", "Source Sans Pro", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
       font-weight: 400;
    font-size: 1.3em;
    background-color: #f0f0f0;
    padding: 0 10px 5px 10px;
    border-radius: 20px;
}
.urdu{
	text-align: right; 
	direction: rtl; 
	font-family: 'Noto Nastaliq Urdu';
	    line-height: 2.6em;
    font-size: 0.7em;
	font-weight: 100;
}

@media (max-width: 767px) {
    /* Set product cards to half-width minus spacing */
    .site-main ul.products li.product {
        width: 46% !important;
        float: left !important;
        margin-right: 8% !important;
        clear: none !important;
    }

    /* Remove right margin on every second item to fit perfectly */
    .site-main ul.products li.product:nth-child(2n) {
        margin-right: 0 !important;
    }

    /* Clear floats on every odd item to prevent layout breaking */
    .site-main ul.products li.product:nth-child(2n+1) {
        clear: both !important;
    }
}

/* ==========================================
   Naveed Fragrances Homepage
   Mobile First
========================================== */

.nf-hero{
    background:linear-gradient(135deg,#008, #005, #003);
    color:#fff;
    text-align:center;
    padding:50px 20px;
    margin:0 0 40px;
}

.nf-hero h1{
    font-size:2rem;
    line-height:1.25;
    font-weight:700;
    margin:0 0 15px;
    color:#fff;
}

.nf-hero p{
    font-size:1rem;
    line-height:1.7;
    color:#fff;
    max-width:42rem;
    margin:0 auto 30px;
}

.nf-buttons{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
}

.nf-btn{
    display:block;
    width:100%;
    max-width:300px;
    padding:14px 26px;
    border-radius:50px;
    text-decoration:none;
    text-align:center;
    font-weight:600;
    transition:.3s;
}

.nf-primary{
    background-color: #94abe8;
    color: #0a0a45;
    font-weight: 100;
}

.nf-primary:hover{
	background-color: #7f9ce8;
    font-weight: 100;
}

.nf-secondary{
    border:2px solid #fff;
    color:#fff;
	font-weight:100;
}

.nf-secondary:hover{
    background:#fff;
    color:#111;
}

.nf-features,
.nf-categories{
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
    margin:45px auto;
}

.nf-feature,
.nf-category{
    background:#f7f7f7;
    padding:22px;
    border-radius:8px;
    text-align:center;
}

.nf-category{
    background:#fff;
    border:1px solid #eee;
}

.nf-feature h3,
.nf-category h3{
    margin-bottom:10px;
}

.nf-about{
    max-width:900px;
    margin:50px auto;
    text-align:center;
}

.nf-about h2{
    margin-bottom:20px;
}

.nf-about p{
    color:#555;
    line-height:1.8;
}

.nf-discovery{
    background:#faf7ef;
    padding:40px 10px;
    margin:50px auto;
    border-radius:10px;
    text-align:center;
}

.nf-discovery .nf-primary{
    background: linear-gradient(164deg, #c7c4be, #faf7ef, #c7c4be);
    color: #0a0a45;
    font-weight: 100;
}

.nf-discovery .nf-primary:hover{
	background: linear-gradient(164deg, #faf7ef, #c7c4be, #faf7ef);
    font-weight: 100;
}

.nf-footer-cta{
    background:#fbfbfb;
    color: #0a0a45;
    padding:40px 20px;
    margin-top:50px;
    border-radius:10px;
    text-align:center;
}

.nf-footer-cta h2{
    color:#0a0a45;
	font-weight:700;
}

.nf-footer-cta .nf-primary{
    background-color: #000;
    color: #fff;
    font-weight: 100;
}

.nf-footer-cta .nf-primary:hover{
    background-color: #333;
    color: #fff;
    font-weight: 100;
}

@media (min-width:768px){

    .nf-hero{
        padding:75px 30px;
    }

    .nf-hero h1{
        font-size:2.6rem;
    }

    .nf-hero p{
        font-size:1.15rem;
    }

    .nf-buttons{
        flex-direction:row;
        justify-content:center;
    }

    .nf-btn{
        width:auto;
        min-width:200px;
    }

    .nf-features{
        grid-template-columns:repeat(2,1fr);
    }

    .nf-categories{
        grid-template-columns:repeat(2,1fr);
    }

    .nf-discovery{
        padding:55px 30px;
    }

    .nf-footer-cta{
        padding:60px 30px;
    }

}

@media (min-width:992px){

    .nf-hero{
        padding:90px 35px;
    }

    .nf-hero h1{
        font-size:3rem;
    }

    .nf-hero p{
        font-size:1.25rem;
    }

    .nf-features{
        grid-template-columns:repeat(4,1fr);
        max-width:1100px;
    }

    .nf-categories{
        grid-template-columns:repeat(4,1fr);
        max-width:1100px;
    }

}

.home .entry-content .nf-hero{
    /*margin-left:-1.41575em;
    margin-right:-1.41575em;*/
	margin-left:0;
    margin-right:0;
    border-radius:20px;
}

@media (min-width:768px){
    .home .entry-content .nf-hero{
        /*margin-left:-2.617924em;
        margin-right:-2.617924em;*/
		margin-left:0;
        margin-right:0;
    }
}

.page-template-template-homepage .entry-header h1 {
	font-size: 2.706325903em;
}

/* ==========================================
   On Sale
========================================== */
.onsale
{
	border-color: #ff0000;
    background-color: #ff0000;
    color: #fff;
}
.wc-block-grid .wc-block-grid__product-onsale, .wc-block-grid__product-image .wc-block-grid__product-onsale,
.woocommerce-LoopProduct-link .onsale {
    position: absolute;
    top: -14px;
    right: -14px;
	border-color: #ff0000;
    background-color: #ff0000;
    color: #fff;
}
.hentry .entry-content a {
    text-decoration: none;
}

/* ==========================================
   Naveed Fragrances Site Store Notice
========================================== */
.demo_store {
    background: linear-gradient(160deg,#F5887A, #F5D088, #F5887A);
    font-weight: 100;
	color:#c31d08;
}
.demo_store a {
    color: #69170d;
}
.demo_store a.woocommerce-store-notice__dismiss-link {
    display: inline-block;
    float: right;
	background:none;
}

.woocommerce-store-notice__dismiss-link {
    font-size: 0;
    text-decoration: none;
    opacity: 1;
    transition: opacity .2s ease;
	background:none;
}

.woocommerce-store-notice__dismiss-link::before {
    content: "×";
    font-size: 16px;
    line-height: 1;
    color: #69170d;
}

.woocommerce-store-notice__dismiss-link:hover {
    opacity: 1;
}
/* ==========================================
   Buttons
========================================== */
button, input[type="button"], input[type="reset"], input[type="submit"], .button, .widget a.button {
    color: #fff;
    border-radius: 5px;
    background: linear-gradient(162deg,#099, #055, #000);
	    /*width: 100%;*/
}
button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, .button:hover, .widget a.button:hover {
    color: #fff;
    border-radius: 5px;
    background: linear-gradient(162deg,#000, #055, #099);
}
.hentry .entry-content .wp-block-button .wp-block-button__link, .editor-styles-wrapper .wp-block-button .wp-block-button__link,
.added_to_cart, .site-header-cart .widget_shopping_cart a.button, .wc-block-grid__products .wc-block-grid__product .wp-block-button__link {
   color: #fff;
    border-radius: 5px;
    background: linear-gradient(162deg,#099, #055, #000);
}

.nf-discovery .add_to_cart_button, .nf-footer-cta .add_to_cart_button
{
    font-size: 0.7em;
}

.nf-footer-cta h2.section-title
{
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-top: 0;
    margin-bottom: 50px;
    display: inline-block;
    padding: 10px 30px;
    border-radius: 34px;
    font-size: 1em;
}

.nf-footer-cta h2.forher
{
	background: linear-gradient(162deg, #f2c3ec, #f379f2, #f2c3ec);
	color: #a61193;
}
.nf-footer-cta h2.forhim
{
	background: linear-gradient(162deg, #8785f3, #090ef0, #8785f3);
    color: #fff;
}
/* ==========================================
   Site header
========================================== */
.site-header {
    background: linear-gradient(171deg, #fcfcfc, #fdfdfd, #e0e0e0);
}

/* ==========================================
   Site footer
========================================== */
.site-footer {
    background: linear-gradient(171deg, #fefefe, #e0e0e0, #fcfcfc);
}

.woocommerce-loop-category__title
{
	color: #000;
    font-weight: 700;
    text-transform: uppercase;
}
.woocommerce-loop-category__title mark
{
	font-weight: 100;
	color: #333;
}

ul.products li.product.product-category img, ul.products .wc-block-grid__product.product-category img, .wc-block-grid__products li.product.product-category img, .wc-block-grid__products .wc-block-grid__product.product-category img {
    box-shadow: 0px -4px 0px #000;
}
/* ==========================================
   Tag line
========================================== */
    .site-branding .site-description {
        letter-spacing: 0px;
        font-style: italic;
        color: #666;
		display: inline-block;
    }
/* ==========================================
  Site Title
========================================== */
.site-branding .site-title {
    font-size: 1.6em;
    letter-spacing: 0;
}

.site-branding .site-title a
{
		font-weight:100;
}
/* ==========================================
   Entry Title
========================================== */
.page-template-template-homepage .entry-header h1 {
    font-size: 2.4em;
}

.wc-block-grid__product-title, .woocommerce-loop-product__title {
    height: 50px;
}

/* ==========================================
   Testimonials
========================================== */
.nf-testimonials {
  padding: 64px 5%;
  text-align: center;
  background-color: #faf8f5;
  margin-top: 50px;
  border-radius: 10px;
}

.nf-testimonials-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.nf-testimonials-sub {
  color: #6b6b6b;
  margin-bottom: 40px;
  font-size: 1rem;
}

.nf-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.nf-testimonial-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nf-stars {
  color: #d4a017;
  font-size: 1rem;
  letter-spacing: 2px;
}

.nf-quote {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  flex-grow: 1;
}

.nf-reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nf-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.nf-reviewer span {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.nf-fb-link {
  display: inline-block;
  margin-top: 32px;
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .nf-testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nf-testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.nf-inline-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #d4a017;
}

/**********How It Works" 3-step section****************/
.nf-how-it-works {
  padding: 64px 5%;
  text-align: center;
  background-color: #fff;
}

.nf-how-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.nf-how-sub {
  color: #6b6b6b;
  margin-bottom: 48px;
  font-size: 1rem;
}

.nf-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* connecting line between steps on desktop */
.nf-steps-grid::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 16.5%;
  right: 16.5%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    #d4a017 0,
    #d4a017 8px,
    transparent 8px,
    transparent 16px
  );
  z-index: 0;
}

.nf-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nf-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.nf-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.nf-step-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #555;
  max-width: 260px;
}

.nf-how-cta {
  display: inline-block;
  margin-top: 48px;
  padding: 12px 28px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}

.nf-how-cta:hover {
  opacity: 0.85;
}

@media (max-width: 700px) {
  .nf-steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nf-steps-grid::before {
    display: none;
  }
  .nf-step-text {
    max-width: 100%;
  }
}
