/*
 Theme Name: Divi Child
 Template: Divi
 Version: 1.0
*/

body{
font-family: 'Instrument Sans', sans-serif;
}

.hover-top-border {
  position: relative;
  overflow: hidden;
}

.hover-top-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #C11F25;
  transition: width 0.5s ease;
}

.hover-top-border:hover::before {
  width: 100%;
}

/* ================= IMAGE WRAPPER ================= */

.product-image-wrap {
  position: relative;
  display: block;
  overflow: hidden; 
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-image-wrap:hover img {
  transform: scale(1.08);
}

/* GRADIENT OVERLAY */
.product-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
  opacity: 0;
  transition: 0.3s;
}

.product-image-wrap:hover::after {
  opacity: 1;
}

/* ================= VIEW DETAILS BUTTON ================= */
.view-details {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background:#c11f25;
  color: #fff;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 14px;
  opacity: 0;
  z-index: 2;
  transition: all 0.3s ease;
}

.product-image-wrap:hover .view-details {
  opacity: 1;
}

.product-image-wrap:hover .view-details {
  opacity: 1;
}


/* ================= WISHLIST ================= */
.custom-wishlist {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  opacity: 0;
  transition: 0.3s;
  
}

.product-image-wrap:hover .custom-wishlist {
  opacity: 1;
}

/* ================= TYPOGRAPHY ================= */

/* CATEGORY */
.meta-top {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.meta-top a {
  color: #C11F25 !important; 
  text-decoration: none;
}

/* TITLE */
.product-title {
  font-size: 20px;
  font-weight: 400;
  margin: 4px 0;
  line-height: 1.4;
  color: #2b2b2b;
}

.product-title a {
  color: #2b2b2b;
}

.product-title a:hover {
  color: #963A2C; 
}

.woocommerce ul.products li.product .price {
  margin-top: 6px;
}

.woocommerce ul.products li.product .woocommerce-Price-amount {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1D1716 !important;
}

.woocommerce ul.products li.product .woocommerce-Price-currencySymbol {
  opacity: 0.8;
}

.tax-text {
  font-size: 11px;
  color: #7F726C;
  display: inline; 
}

/* EXTRA INFO */
.weaving {
  font-size: 11px;
  color: #7F726C;
  margin-top: 4px;
}

/* ================= CLEANUP ================= */

.products li.product {
  text-align: left;
}

/* ================= CATEGORY CARD BASE ================= */

/* ================= REMOVE WOOCOMMERCE CLEARFIX ================= */

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

/* ================= CATEGORY GRID ================= */

.woocommerce ul.products.columns-3 {

    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;

}

/* ================= CATEGORY CARD ================= */

.woocommerce ul.products li.product-category {

    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    list-style: none;

}

/* ================= IMAGE ================= */

.woocommerce ul.products li.product-category img {

    width: 100%;
    height: 520px; /* FIXED HEIGHT */
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;

}

/* ================= HOVER ================= */

.woocommerce ul.products li.product-category:hover img {

    transform: scale(1.02);

}

/* ================= TITLE ================= */

/* ================= TITLE ================= */

.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
    width: 100%;
    background: #C11F25;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    letter-spacing: 1px;
    line-height: 1.4;
    text-align: center;
    padding: 14px  !important;
    margin-top: 10px !important;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    box-sizing: border-box;

}

/* ================= CENTER TITLE WRAPPER ================= */

.woocommerce ul.products li.product-category a {

    display: flex;
    flex-direction: column;
    align-items: center;

}
/* ================= REMOVE COUNT ================= */

.woocommerce ul.products li.product-category mark {

    display: none !important;

}

/* ================= REMOVE UNUSED ================= */

.cat-location,
.cat-count {

    display: none !important;

}

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


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

@media (max-width: 980px) {

    .woocommerce ul.products.columns-3 {

        grid-template-columns: repeat(2, 1fr);
        gap: 20px;

    }

	   .woocommerce ul.products.columns-3 li.product-category {

        width: 100% !important;
        float: none !important;
        margin: 0 !important;

    }

	
    .woocommerce ul.products li.product-category img {

        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
        object-fit: cover;

    }

    .woocommerce ul.products li.product-category .woocommerce-loop-category__title {

        font-size: 24px !important;

    }

}

/* ================= MOBILE ================= */

@media (max-width: 767px) {

    .woocommerce ul.products.columns-3 {

        grid-template-columns: 1fr;
        gap: 24px;

    }
	
	   .woocommerce ul.products.columns-3 li.product-category {

        width: 100% !important;
        float: none !important;
        margin: 0 !important;

    }


    .woocommerce ul.products li.product-category img {

        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
        object-fit: cover;

    }

    .woocommerce ul.products li.product-category .woocommerce-loop-category__title {

        font-size: 22px !important;

    }

}


/*  ======  Collection Page CSS   =======  */

/* ===== SIDEBAR WRAPPER ===== */
.woocommerce .widget {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5dcd7;
}

/* ===== FILTER TITLE (FILTERS) ===== */
.woocommerce .widget-title {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2b2b2b;
  margin-bottom: 15px;
}

/* ===== SECTION HEADINGS (CRAFT, REGION...) ===== */
.woocommerce .widget h4,
.woocommerce .widget h3 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2b2b2b;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* Add arrow */
.woocommerce .widget h4::after,
.woocommerce .widget h3::after {
  content: "▾";
  font-size: 12px;
  color: #8c6f63;
}

/* ===== FILTER LIST ===== */
.woocommerce .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===== FILTER ITEMS AS BUTTONS ===== */
.woocommerce .widget ul li {
  display: inline-block;
  margin: 6px 6px 6px 0;
}

/* ===== BUTTON STYLE ===== */
.woocommerce .widget ul li a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #e3d5cf;
  background: #fff;
  font-size: 13px;
  color: #6e5a52;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* ===== HOVER ===== */
.woocommerce .widget ul li a:hover {
  border-color: #9b595f;
  color: #9b595f;
}

/* ===== ACTIVE (SELECTED) ===== */
.woocommerce .widget ul li.chosen a,
.woocommerce .widget ul li a.active {
  background: #9b3d2f;
  color: #fff;
  border-color: #9b3d2f;
}

/* ===== PRICE FILTER ===== */
.woocommerce .widget_price_filter .price_slider_wrapper {
  margin-top: 15px;
}

.woocommerce .widget_price_filter .ui-slider {
  background: #eee;
  height: 3px;
}

.woocommerce .widget_price_filter .ui-slider-range {
  background: #9b3d2f;
}

.woocommerce .widget_price_filter .ui-slider-handle {
  background: #9b3d2f;
  border: none;
  width: 12px;
  height: 12px;
  top: -5px;
}

/* ===== REMOVE DEFAULT DROPDOWN STYLE ===== */
.woocommerce .widget select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e3d5cf;
  background: #fff;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .woocommerce .widget ul li {
    display: inline-block;
  }
}

/*====================================*/

/* ===== FILTER GRID LAYOUT ===== */
.bapf_body ul {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 0;
margin: 0;
}

.bapf_body ul li {
list-style: none;
}

/* ===== HIDE CHECKBOX ===== */
.bapf_body input[type="checkbox"] {
display: none;
}

/* ===== BUTTON STYLE ===== */
.bapf_body input[type="checkbox"] + label {
display: inline-block;
border: 1px solid #e7e1da;
background: #fff;
font-size: 11px;
color:#7F726C;
cursor: pointer;
border-radius: 2px;
transition: all 0.2s ease;
}

/* ===== ACTIVE (SELECTED) ===== */
.bapf_body input[type="checkbox"]:checked + label {
background: #8B3A2E;
color: #fff;
border-color: #8B3A2E;
}

/* ===== HOVER ===== */
.bapf_body input[type="checkbox"] + label:hover {
border-color: #8B3A2E;
}

/* ===== SECTION SPACING ===== */
.bapf_sfilter {
border-bottom: 1px solid #eee;
padding-bottom: 15px;
margin-bottom: 15px;
}

/* ===== PRICE SLIDER ===== */
.ui-slider-range {
background: #000 !important;
}

.ui-slider-handle {
background: #000 !important;
border-radius: 50%;
width: 14px;
height: 14px;
border: none;
top: -5px;
}

/* REMOVE CHECK ICON */
.bapf_body input[type="checkbox"]:checked + label::before {
    display: none !important;
    content: none !important;
}

.bapf_body label::before {
    display: none !important;
    content: none !important;
}

/* ===== SORT DROPDOWN CLEAN STYLE ===== */

/* wrapper spacing */
.woocommerce .woocommerce-ordering {
margin-bottom: 20px;
}

/* select styling */
.woocommerce-ordering .orderby {
background: transparent !important;
border: 1px solid #ddd;
padding: 10px 15px;
font-size: 14px;
cursor: pointer;
outline: none;
}

/* hover effect */
.woocommerce-ordering .orderby:hover {
border-color: #8B3A2E;
}

/* focus effect */
.woocommerce-ordering .orderby:focus {
border-color: #8B3A2E;
}

/* remove divi default styles */
.et-db #et-boc .woocommerce-ordering select {
box-shadow: none !important;
}

/* ==========  Single product page   ============*/

/* TOP META */
.custom-meta-single .meta-top {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #777;
}

/* CATEGORY LINKS */
.custom-meta-single .meta-top a {
    border: 1px solid #C11F25;
    padding: 4px 10px;
    color: #ca3500;
	background:#efe4e1;
    text-decoration: none;
    margin-right: 5px;
}

/* REGION TEXT */
.custom-meta-single .meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* MAKE PRICE + TAX INLINE */
.single-product .price {
    display: inline-block;
    margin-right: 10px;
    color: #C11F25;
    font-size: 22px;
    font-weight: 500;
}

.single-product .tax-text {
    display: inline-block;
    font-size: 12px;
    color: #777;
}

.et_pb_wc_price {
    display: inline-block;
}

.tax-text {
    display: inline-block;
    margin-left: 6px;
}

/* FULL WIDTH BUTTON */
.single-product .single_add_to_cart_button {
    width: 100%;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
}

 /*   ===========   Header CSS   =========   */

/* ================= HEADER BASE ================= */
.glass-header {
    position: fixed;
    top: 0; 
    width: 100%;
    z-index: 9999;
    background: #f9f7f6;
    transition: all 0.4s ease;
}

/* ================= GLASS LAYER ================= */
.glass-header::before {
    content: "";
    position: absolute;
    inset: 0;

    backdrop-filter: blur(22px) saturate(120%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);

    background: rgba(255,255,255,0.10);

    opacity: 0;
    transition: opacity 0.4s ease;

    z-index: -1;
    pointer-events: none; /* optimization */
}

/* ================= SCROLL STATE ================= */
.glass-header.is-scrolled {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.glass-header.is-scrolled::before {
    opacity: 1;
}

/* ================= DIVI FIX (ONLY YOUR HEADER) ================= */
.glass-header.et_pb_sticky,
.glass-header.et_pb_sticky.et_pb_sticky--top {
    background: transparent !important;
}

/* Remove Divi internal background that breaks blur */
.glass-header.et_pb_sticky .et_pb_row {
    background: transparent !important;
}

/* ================= FILTER ================= */

.blog-filters{
  display:flex;
  gap:40px;
  margin-bottom:40px;
  border-bottom:1px solid #eee;
  padding-bottom:10px;
}

.filter-btn{
  background:none;
  border:none;
  font-size:12px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#777;
  cursor:pointer;
  padding:0 0 8px;
  position:relative;
}

.filter-btn::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0%;
  height:2px;
  background:#c89b3c;
  transition:width .3s ease;
}

.filter-btn.active{
  color:#000;
}

.filter-btn.active::after{
  width:100%;
}

/* ================= GRID ================= */

.blog-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
}

/* ================= CARD ================= */

.blog-card{
  background:transparent;
  border:none;
}

.blog-card a{
  text-decoration:none;
  color:inherit;
  display:block;
}

/* IMAGE */

.blog-card img{
  width:100%;
  height:auto;
  display:block;
}

/* CATEGORY BADGE ON IMAGE */

.blog-card{
  position:relative;
}

.blog-card-category{
  position:absolute;
  top:12px;
  left:12px;
  background:#C11F25;
  color:#fff;
  font-size:10px;
  letter-spacing:1px;
  padding:4px 10px;
  text-transform:uppercase;
}

/* META */

.meta{
  font-size:10px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#999;
  margin:12px 0 6px;
}

/* TITLE */

.blog-card h3{
  font-size:18px;
  line-height:1.4;
  font-weight:500;
  margin-bottom:8px;
  color:#1b2232;
}

/* EXCERPT */

.blog-card p{
  font-size:14px;
  color:#666;
  margin-bottom:12px;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* AUTHOR */

.blog-card-meta{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#555;
}

.blog-card-meta img{
  width:20px;
  height:20px;
  border-radius:50%;
}

/* ================= HOVER ================= */

.blog-card:hover img{
  transform:scale(1.04);
  transition:.4s ease;
}

.blog-card img{
  transition:.4s ease;
}

/*============= Featured Post CSS ======*/

/* FEATURED SECTION */

.custom-featured{
  display:flex;
  gap:60px;
  margin-bottom:60px;
  align-items:center;
}

/* IMAGE */
.featured-img{
  position:relative;
  flex:1;
}

.featured-img img{
  width:100%;
  display:block;
}

/* BADGE */
.featured-badge{
  position:absolute;
  top:20px;
  left:20px;
  background:#C11F25;
  color:#fff;
  font-size:10px;
  padding:6px 12px;
  letter-spacing:1px;
}

/* CONTENT */
.featured-content{
  flex:1;
}

.featured-cat{
  font-size:11px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#C11F25;
  margin-bottom:10px;
}

.featured-content h2{
  font-size:32px;
  line-height:1.3;
  margin-bottom:15px;
  color:#1b2232;
}

.featured-excerpt{
  font-size:15px;
  color:#666;
  margin-bottom:20px;
}

/* AUTHOR */
.featured-author{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.featured-author img{
  border-radius:50%;
}

/* META */
.featured-meta{
  font-size:11px;
  letter-spacing:2px;
  color:#999;
  margin-bottom:20px;
}

/* LINK */
.featured-link{
  color:#ca3500;
  text-decoration:none;
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
}

/* RESPONSIVE */
@media(max-width:980px){
  .custom-featured{
    flex-direction:column;
  }
}

/* Ensure product card is relative */
.product,
.product-small,
.product-type-simple {
    position: relative;
}

/* Wishlist container positioning */
.yith-wcwl-add-to-wishlist-button-block {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 9;
}

/* Make button circular */
.yith-wcwl-add-to-wishlist-button {
    background: rgba(255,255,255,0.95);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

/* Remove any text inside */
.yith-wcwl-add-to-wishlist-button span {
    display: none !important;
}

/* SVG icon styling */
.yith-wcwl-icon-svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #C11F25;
    transition: all 0.3s ease;
}

.yith-wcwl-add-to-wishlist-button:hover {
    background: #C11F25;
}

.yith-wcwl-add-to-wishlist-button:hover .yith-wcwl-icon-svg {
    stroke: #fff;
    transform: scale(1.1);
} 


/* =========================================
   FIX SMALL PRODUCT WIDTH ISSUE
========================================= */
/* =========================================
   SHOP PAGE PRODUCT GRID FIX ONLY
========================================= */

.post-type-archive-product .et_pb_shop ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 34px !important;
}

.post-type-archive-product .et_pb_shop ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* =========================================
   PRODUCT INFO TABLE
========================================= */

.custom-product-table {
    margin-top: 30px;
}

.custom-product-table table {
    width: 100%;
    border-collapse: collapse;
}

.custom-product-table th,
.custom-product-table td {
    border: 1px solid #ddd;
    padding: 8px 14px;
    text-align: left;
    font-size: 14px;
}

.custom-product-table th {
    width: 30%;
    text-transform: uppercase;
    font-weight: 600;
    color: #000;
    background: #fafafa;
}

.custom-product-table td {
    color: #555;
}


/* =========================================
   PRODUCT CATEGORY PAGE FIX
========================================= */

.tax-product_cat ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 34px !important;
}

.tax-product_cat ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}