/* =========================
   THEME TWEAKS
========================= */

/* Typography wrappinf

:is(h1, h2, h3, h4, h5, h6),
.balance {
    text-wrap: balance;
}
*/


/* Use pretty wrapping for body text elements 
p,
blockquote,
li {
    text-wrap: pretty;
}

*/

/* Remove bottom margin from final paragraph */
p:last-child:last-of-type {
    margin-bottom: 0px;
}





/* =========================
   UTILITIES
========================= */

/* Line Clamping 
.line-limit-3,
.line-limit-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-limit-3 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.line-limit-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
*/

/* Visually Hidden (accessible to screen readers) */
.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Smooth Transition Utility */
.transition {
    transition: all 0.25s ease-in-out;
}


/* =========================
   GP MENU ACCESSIBILITY TWEAKS
========================= */

#site-navigation ul.sub-menu {
    display: block;
}

#site-navigation li:hover .gp-icon svg {
    transform: rotate(180deg);
}

#site-navigation li:hover .sub-menu {
    visibility: visible;
}


/* =========================
   STRETCH LINK 
========================= */

.stretch-link {
    position: relative;
}

.stretch-link a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.stretch-link a:is(:focus-visible)::after {
    outline: 2px solid;
}

.stretch-link a:is(:hover, :focus) {
    outline: none;
}


/* =========================
   CONTAINER WRAPPER
========================= */

.site-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
    background: var(--neutral-50);
}

/** Wocommerce Related **/

/** Mini cart button **/


.wc-block-mini-cart__shopping-button {
	background-color: var(--accent);
	color: #fff;
	padding: 12px 20px;
	border-radius: 4px;
	text-decoration: none;
}

.wc-block-mini-cart__shopping-button:hover {
	background-color: var(--accent-2);
}	
	
	




/** Woo buttons **/
.woocommerce ul.products li.product a.button.add_to_cart_button {
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: auto;
 background:#8a8484;
	
  padding: 8px;
  transition: background-color .25s ease, color .25s ease;
}

.woocommerce ul.products li.product:hover a.button.add_to_cart_button {
  background: var(--accent);
  color: #fff;
}


html, body {
  overflow-x: hidden; /* stop horizontal scroll */
}

img, iframe, .wp-block-image, .woocommerce-product-gallery {
  max-width: 100% !important;
  height: auto;
}




/* ================================
 HEADER SEARCH BAR LAYOUT
  ================================ */

.wp-block-search__inside-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 1px 15px; /* compact height */
  border: 1px solid transparent; /* hidden by default */
  transition: all 0.2s ease;
}

.wp-block-search__inside-wrapper:focus-within {
  background: #ffffff; /* white on focus */
  border: 1px solid #e0e0e0; /* light gray border */
}

/* Input box */
.wp-block-search__input {
  border: none !important;
  background: transparent !important;
  font-size: 13px;
  padding: 4px 7px;
  outline: none;
  color: #282c3f; /* Myntra text color */
  flex: 1 1 auto; /* grow inside wrapper */
  min-width: 0;
}

.wp-block-search__input::placeholder {
  color: #696e79; /* Myntra placeholder color */
  font-size: 13px;
}

/* Search button */
.wp-block-search__button {
  border: none;
  background: transparent;
  padding: 0;
  margin-right: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto; /* don’t let button stretch */
}

.wp-block-search__button svg {
  width: 16px;
  height: 16px;
  fill: #696e79; /* Myntra gray icon */
}

/* DESKTOP ONLY */
@media (min-width:1025px) {

  /* let the middle container actually be able to shrink/grow */
  .gb-navigation-9fab92dc,
  .gb-menu-container-383f66b9,
  .gb-element-f7317c4d,
  .gb-element-56729d75 {
    min-width: 0; /* critical for flex children to grow/shrink */
  }

	
	
  /* Keep account & cart icons fixed size */
  .gb-element-f7317c4d .account-login,
  .gb-element-f7317c4d .wc-block-mini-cart,
  .gb-element-f7317c4d .wc-block-mini-cart__button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    display: flex;
    align-items: center;
  }
}










/* =============== Fluent Login  Styling. ========== */

/* Input Label */

.fls_login_wrapper input[type="text"],
.fls_login_wrapper input[type="email"],
.fls_login_wrapper input[type="url"],
.fls_login_wrapper input[type="password"],
.fls_login_wrapper input[type="search"],
.fls_login_wrapper input[type="tel"],
.fls_login_wrapper input[type="number"],
.fls_login_wrapper textarea,
.fls_login_wrapper select,

.fls_registration_wrapper input[type="text"],
.fls_registration_wrapper input[type="email"],
.fls_registration_wrapper input[type="password"],
.fls_registration_wrapper select,

.fls_reset_pass_wrapper input[type="text"],
.fls_reset_pass_wrapper input[type="email"],
.fls_reset_pass_wrapper input[type="password"] {
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    color: #333 !important;
    padding: 10px; !important;
    font-size: 15px;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Text Label */

.fls_login_wrapper #fls_2fa_form label,
.fls_login_wrapper form#loginform label {
    display: block;
   font-weight: 400 !important;
    font-size: 15px;
}

/* To hide labels */
/* .login-username label,
.login-password label {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
/*
 



/* Google-like Input Focus Style */
.fls_login_wrapper input:focus,
.fls_registration_wrapper input:focus,
.fls_reset_pass_wrapper input:focus {
    outline: none;
    border: none;
    border: 1px solid #1a73e8 !important; 
    background-color: #fff !important;
    box-shadow: none !important;
    border-radius: 4px; !important;
    transition: border-color 0.2s ease;
}


/* Magic button  Signup iwth google */

.magic_btn_secondary, .fs_auth_btn.fs_auth_google {
    color: #00562;
    background-color: white;
    border: 1px solid #ccc !important;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
    width: 100%;
	font-size: 17px;
    /* Optional: add font settings or hover effects to match */
}



/* FORCE main auth buttons */
.fls_auth_wrapper button,
.fls_auth_wrapper button#fls_submit,
.fls_auth_wrapper button#fls_reset_pass,
.fls_auth_wrapper input#wp-submit,
.fls_auth_wrapper input[type="submit"] {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

/* Hover */
.fls_auth_wrapper button:hover,
.fls_auth_wrapper input[type="submit"]:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    opacity: 0.9;
}

/* SVG loader inside button */
.fls_auth_wrapper button svg,
.fls_auth_wrapper button svg path {
    fill: currentColor !important;
    color: #fff !important;
}


/* Links */
.fls_auth_wrapper a {
    color: var(--accent);
    text-decoration: none;
}

/* Link hover */
.fls_auth_wrapper a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* SVG loader inside buttons */
.fls_auth_wrapper button svg,
.fls_auth_wrapper button svg path {
    color: var(--accent);
    fill: currentColor;
}





















/** Product Rating **/

/* Wocommerce Star Rating */

.star-rating {
    position:relative;
}
.star-rating:before {
    opacity: .25;
    content: "SSSSS";
}
.star-rating:before {
    color: rgba(0, 0, 0, .4);
}
.star-rating::before {
    content: "SSSSS";
    color: #cfc8d8;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}
.star-rating span:before, p.stars:hover a::before {
    color: #ffa200;
}

.star-rating span::before {
    content: "SSSSS";
    top: 0;
    position: absolute;
    left: 0;
}
.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}
.star-rating {
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5.4em;
    font-family: WooCommerce;
}




/** WooCommerce **/



/* Force display of the mini cart on all pages */
.wc-block-mini-cart {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}




ul.wc-block-product-template {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    display: grid;
    gap: 10px;
  
}


ul.wc-block-product-template > li.wc-block-product {
    display: grid;
    grid-template-rows: auto 1fr auto;
    border: 1px solid var(--neutral-300, #ccc);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #fff;
    margin: 0 !important;
    padding: 0;
    transition: box-shadow 0.3s ease;
}


/* Select all direct children of .wc-block-product except last child and remove top margin testing */
.wc-block-product-template .wc-block-product > :not(:last-child) {
    margin-top: 0 !important;
}

/* Remove all margin from .wc-block-components-product-image */
.wc-block-components-product-image {
    margin: 0 !important;
}



.feature-product__title {
    margin-bottom: 0rem !important;
}











 /***** Single Product Page styles ******/
.single-product .woocommerce-product-gallery {
    border: 1px solid rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.single-product .woocommerce-product-gallery:hover {
    border: 1px solid rgba(0,0,0,0);
    box-sizing: border-box;
}

.single-product .woocommerce-product-gallery__image {
    margin: 5px 5px 5px 5px;
}


.woocommerce div.product.do-quantity-buttons form.cart {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
}











/**** Products Styling ******/



/* === WooCommerce Product Loop Overrides === */

.woocommerce ul.products li.product {
  border: 1px solid var(--contrast-3);
  transition: box-shadow 0.2s ease-in-out;
  margin: 0;
	padding: 10px;
	background: var(--base);
	
}


/* Hover shadow effect */
.woocommerce ul.products li.product:hover {
  box-shadow: 0px 2px 4px rgba(0,0,0,0.15);
	background: var(--base-2);
}



/* Title styling */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  color: var(--contrast);
  font-size: 1rem;
  font-weight: 600;
  text-transform: capitalize;
  padding: 5px;
  margin: 0;
  text-align: left;
}



.woocommerce ul.products li.product:hover h2.woocommerce-loop-product__title {
  color: var(--accent);
}

/* Price styling */
.woocommerce ul.products li.product .price {
  font-size: 0.9rem;
	font-weight: 400;
  padding: 0 5px 12px;
  margin: 0;
  text-align: left;
	
}




/** Product grid **/
.products.columns-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 0.8rem; 
	column-gap: 0.8rem;

@media (max-width: 768px) {
  .products.columns-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .products.columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
	



	
	
	
	
	

/** Breadcrumb only on archive product pages **/
@media (min-width: 768px) {
  .woocommerce.archive:has(.woocommerce-no-products-found) .woocommerce-breadcrumb {
    margin-bottom: 0 !important; /* reset when no products */
  }

  .woocommerce.archive .woocommerce-breadcrumb {
		margin-top: 2rem;
    margin-bottom: 2.8rem;
  }
}

/* Cart */

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button {
    background-color: #af4c0f;
    color: #ffffff; /* white text */
    text-decoration: none;
}


/**** Mini Cart **/

	
	
.wc-block-mini-cart__badge {
     font-size: .5em;
   
}
	
	
.wp-block-woocommerce-mini-cart-title-block {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}
	


	
	


/* Product prices */
.wp-block-woocommerce-mini-cart-items-block .wc-block-components-product-price {
    font-size: 0.8rem!important;
    font-weight: 500 !important;
}


/* Product title (both link and hidden span) */
.wp-block-woocommerce-mini-cart-items-block .wc-block-components-product-name,
.wp-block-woocommerce-mini-cart-items-block .wc-block-components-product-name a {
    color: #af4c0f !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.wp-block-woocommerce-mini-cart-items-block .wc-block-components-product-name:hover,
.wp-block-woocommerce-mini-cart-items-block .wc-block-components-product-name a:hover {
    color: #933e0c !important;
}

/* Product description */
.wp-block-woocommerce-mini-cart-items-block .wc-block-components-product-metadata__description,
.wp-block-woocommerce-mini-cart-items-block .wc-block-components-product-metadata__description p {
    font-size: 0.9rem !important;   /* was 1px (too small, looked invisible) */
    color: #555 !important;
    line-height: 1.4 !important;
    margin-top: 2px !important;
}


/* Style ONLY the "Start shopping" button inside empty mini cart */
.wp-block-woocommerce-empty-mini-cart-contents-block .wc-block-mini-cart__shopping-button {
  background: #af4c0f; /* Myntra pink */
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  text-transform: uppercase;
  text-align: center;
  display: inline-block;
  transition: background 0.25s ease;
}

.wp-block-woocommerce-empty-mini-cart-contents-block .wc-block-mini-cart__shopping-button:hover {
  background: #af4c0f; /* darker hover */
  color: #fff;
}
	


@media (max-width: 667px) {
  .related.products ul.products,
  .upsells.products ul.products,
  .woocommerce .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* change 2 → 3 for 3 columns */
    gap: 15px;
  }

  .related.products ul.products li.product {
    width: auto; /* let grid control sizing */
  }
}


