/* ===============================
   FILTER SECTION (4 Column Grid)
=================================*/

#sfd-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
  align-items: center;
}

/* Shared styles for selects + button */
#sfd-filters select,
#sfd-filters button {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  transition: all .25s ease;
  width: 100%;
  box-sizing: border-box;
}

/* Select styling */
#sfd-filters select {
  border: 2px solid #e5e5e5;
  background-color: #ffffff;
  color: #222;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 7 5-7' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 10px 7px;
}

#sfd-filters select:not(:disabled):hover,
#sfd-filters select:not(:disabled):focus {
  border-color: #000;
  outline: none;
}

#sfd-filters select:disabled,
#sfd-filters button:disabled {
  background: #f7f7f7;
  color: #999;
  cursor: not-allowed;
  pointer-events: none;
}

/* Search Button */
#sfd-filters button {
  border: 2px solid #000;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

#sfd-filters button:hover:not(:disabled) {
  background-color: #333;
  border-color: #333;
}

/* Responsive Filters */
@media screen and (max-width: 1024px) {
  #sfd-filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  #sfd-filters {
    grid-template-columns: 1fr;
  }
}

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

.custom-shop-products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-shop-product {
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* Hover effect: subtle lift & shadow */
.custom-shop-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* Tablet: 2 per row */
@media (max-width: 1024px) {
    .custom-shop-product {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Mobile: 1 per row */
@media (max-width: 600px) {
    .custom-shop-product {
        flex: 1 1 100%;
    }
}

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

/* Title */
.custom-shop-product .woocommerce-loop-product__title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.5rem 0 0.25rem 0;
    color: #222;
}

/* Subheading */
.custom-product-subheading {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Hide price and add-to-cart in loop */
.custom-shop-product .price,
.custom-shop-product .woocommerce-loop-product__price,
.custom-shop-product .add_to_cart_button,
.custom-shop-product .product_type_simple,
.custom-shop-product .product_type_variable,
.custom-shop-product .button {
    display: none !important;
}

/* ===============================
   PRODUCT FADE-IN ANIMATION

/* Modal overlay & content */
#sfd-enquire-modal {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    display: none;
    z-index: 9999;
}

.sfd-modal-overlay {
    position: absolute;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
}

.sfd-modal-content {
    position: relative;
    background: #fff;
    max-width: 500px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 6px;
    z-index: 2;
}

.sfd-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

#sfd-enquire-form input,
#sfd-enquire-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

#sfd-enquire-form button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
}

#sfd-enquire-form button:hover {
    background-color: #333;
}

/* --------------------------------
   Single Product: Clean Premium Layout
----------------------------------*/

/* Main wrapper */
.sfd-single-product-wrapper {
    margin: 60px auto;
    max-width: 1400px;
    align-items: start;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #222;
}

/* Left column: product image */
.sfd-single-product-wrapper .woocommerce-product-gallery {
    margin-bottom: 30px;
}

.woocommerce div.product div.woocommerce-product-gallery__image img {
    max-height: 400px;  /* maximum height */
    width: auto;        /* keep width proportional */
    height: auto;       /* maintain aspect ratio */
    object-fit: contain; /* ensures image fits without cropping */
}

/* Right column: summary */
.sfd-single-product-wrapper .summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Product Title (large & uppercase) */
.sfd-single-product-wrapper .product_title {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* “From” price (big & bold) */
.sfd-single-product-wrapper .woocommerce-Price-amount {
    font-size: 26px;
    font-weight: 600;
    color: #000;
    margin-top: 4px;
}

/* Divider under price */
.sfd-single-product-wrapper .sfd-price-divider {
    width: 60px;
    height: 2px;
    background: #ddd;
    margin: 12px 0;
}

/* Meta / short description */
.sfd-single-product-wrapper .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Custom attribute lists */
.sfd-single-product-wrapper .sfd-product-attributes {
    display: flex;
    gap: 18px;
    font-size: 14px;
    color: #444;
    margin-bottom: 24px;
}

/* Single attribute label/val */
.sfd-single-product-wrapper .sfd-product-attribute label {
    font-weight: 700;
    margin-right: 6px;
}

/* Enquire CTA */
#sfd-enquire-btn {
    background: #000;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    font-size: 15px;
    letter-spacing: 0.4px;
    transition: background .25s ease;
    width: fit-content;
    cursor: pointer;
}

#sfd-enquire-btn:hover {
    background: #333;
}

/* Remove default WooCommerce add‑to‑cart etc. */
.sfd-single-product-wrapper .single_variation,
.sfd-single-product-wrapper .quantity,
.sfd-single-product-wrapper .stock,
.sfd-single-product-wrapper .cart {
    display: none !important;
}

/* Responsive (stack columns) */
@media (max-width: 1024px) {
    .sfd-single-product-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* Add top padding to content-area only on single product pages */
body.single-product .content-area {
    padding-top: 100px;
}

body.single-product .woocommerce-breadcrumb {
    display: none;
}

body.single-product .woocommerce-product-details__short-description {
    display: none;
}

body.search.post-type-archive-product .content-area,
body.search.post_type_product .content-area {
    padding-top: 100px;
}

body.search.post-type-archive-product .woocommerce-breadcrumb,
body.search.post_type_product .woocommerce-breadcrumb {
    display: none;
}

/* ===============================
   Shop Search Box (Enter to Search)
=================================*/

.sfd-search-form {
    max-width: 400px;
    margin: 0 auto 40px;
}

.sfd-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    outline: none;
    transition: border 0.25s ease;
}

.sfd-search-input:focus {
    border-color: #000;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .sfd-search-form {
        max-width: 100%;
        padding: 0 10px;
    }
}


/* ===============================
   WooCommerce Product Search Results
   Styled like filter products
=================================*/

/* Main products container */
body.search.post-type-archive-product ul.products,
body.search.post_type_product ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual product card */
body.search.post-type-archive-product ul.products li.product,
body.search.post_type_product ul.products li.product {
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
    text-align: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover effect: subtle lift & shadow */
body.search.post-type-archive-product ul.products li.product:hover,
body.search.post_type_product ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* Product image inside the card */
body.search.post-type-archive-product ul.products li.product img,
body.search.post_type_product ul.products li.product img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

/* Product title */
body.search.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.search.post_type_product ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}


body.search.post-type-archive-product ul.products li.product .price,
body.search.post_type_product ul.products li.product .price {
    display: none;
}

/* Tablet: 2 per row */
@media (max-width: 1024px) {
    body.search.post-type-archive-product ul.products li.product,
    body.search.post_type_product ul.products li.product {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Mobile: 1 per row */
@media (max-width: 600px) {
    body.search.post-type-archive-product ul.products li.product,
    body.search.post_type_product ul.products li.product {
        flex: 1 1 100%;
    }
}

body.search.post-type-archive-product ul.products li.product .button,
body.search.post_type_product ul.products li.product .button {
    display: none;
}

/* Custom notice box for product page */
.sfd-product-notice {
    display: flex;
    align-items: center; 
    border: 2px solid #333; 
    background-color: #333; 
    padding: 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 25px 0;
    line-height: 1.5;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    height: 136px!important;
}

.sfd-product-notice-image {
    flex: 1;                /* Allow image to take the full height/width of its side */
    height: 100%;           /* Image should fill the entire height of the box */
    padding: 0;             /* No padding */
}

.sfd-premium-logo {
    width: 100%;            /* Image stretches to fill the width of the box */
    height: 100%;           /* Image stretches to fill the height of the box */
    object-fit: cover;      /* Ensures the image fills without distortion */
}

.sfd-product-notice-text {
    flex: 2;                /* Text will take up the remaining space */
    padding-left: 15px;     /* Space between image and text */
}

.sfd-product-notice p {
    margin: 0;              /* No extra margin around text */
}

.sfd-product-notice strong {
    font-weight: 600;
    font-size: 18px;        /* Slightly larger for emphasis */
    color: #fff;            /* Ensure text is white */
}

