/* ===== Above Header Bar ===== */
.ast-above-header {
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    padding: 6px 20px;
}

/* Phone Left Side */
.header-phone {
    font-weight: 500;
    color: #333;
}
.header-phone a {
    color: #333;
    text-decoration: none;
}
.header-phone a:hover {
    color: #00bfff;
}




/* Fix product loop fallback */
.woocommerce ul.products li.product .woocommerce-loop-product__link .description,
.woocommerce ul.products li.product .post-meta,
.woocommerce ul.products li.product .read-more {
    display: none !important;
}
/* Hide blog-like articles on shop page */
.woocommerce ul.products li.post {
    display: none !important;
}


/* ===== Product Card - Robu Style ===== */
.woocommerce ul.products li.product {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 12px;
    box-shadow: none;
    transition: all 0.2s ease-in-out;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: auto;
}

/* Hover Effect */
.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* Product Image */
.woocommerce ul.products li.product img {
    max-height: 160px;
    object-fit: contain;
    margin: 0 auto 10px;
    border-radius: 4px;
}

/* Product Title (blue like Robu) */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 600;
    color: #00a6ff; /* Robu blue, you can replace with brand color */
    margin: 6px 0 4px;
    line-height: 1.4;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere;
}

/* SKU */
.woocommerce ul.products li.product .product-sku {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    display: block;
}

/* Star Ratings */
.woocommerce ul.products li.product .star-rating {
    font-size: 12px;
    margin-bottom: 6px;
}

/* Price */
.woocommerce ul.products li.product .price {
    font-weight: 700;
    font-size: 14px;
    color: #000;
    margin-top: auto;
}

/* Add "Incl. GST" below price */
.woocommerce ul.products li.product .price::after {
    content: " (Excl. GST)";
    font-weight: 400;
    font-size: 12px;
    color: #666;
    margin-left: 4px;
}

/* Hide Add to Cart Button */
.woocommerce ul.products li.product a.button {
    display: none !important;
}
/* Hide variation options inside product cards (for variable products) */
.woocommerce ul.products li.product .variations_form,
.woocommerce ul.products li.product .variations,
.woocommerce ul.products li.product .variations_button {
    display: none !important;
}

}
/* ===== Product Page Container ===== */
.single-product .product {
    background: #fff;
    padding: 20px 25px;
    border: 1px solid #e5e5e5; /* thin border like Robu */
    border-radius: 6px;
    box-shadow: none; /* remove heavy shadow */
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* ===== Product Title ===== */
.woocommerce div.product .product_title {
    font-size: 24px; /* smaller, compact like Robu */
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

/* ===== Price Styling ===== */
.woocommerce div.product p.price, 
.woocommerce div.product span.price {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ===== Short Description ===== */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 18px;
    margin-left: 0; /* remove negative margin */
    line-height: 1.5;
}

/* ===== Add to Cart Button ===== */
.woocommerce div.product .single_add_to_cart_button {
    background-color: #00bfff;
    border-radius: 4px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.woocommerce div.product .single_add_to_cart_button:hover {
    background-color: #008fc9;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}


/* ===== Quantity Box ===== */
.woocommerce div.product form.cart .quantity input {
    width: 55px;
    height: 38px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

/* ===== Product Gallery ===== */
/* ===== Product Gallery ===== */
.woocommerce-product-gallery {
    flex: 1 1 45%;
    max-width: 600px;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
    background: #fff;
}

.woocommerce-product-gallery img {
    border-radius: 4px;
    box-shadow: none;
    max-width: 100%;
    height: auto;
    object-fit: contain; /* keeps proportions clean */
}

/* Gallery Thumbnails */
.woocommerce-product-gallery .flex-control-nav {
    display: flex;
    gap: 8px;
    margin-top: 10px;
/*     flex-wrap: wrap; */
    justify-content: flex-start;
}

.woocommerce-product-gallery .flex-control-nav img {
    border: 1px solid #ddd;
    border-radius: 3px;
    max-width: 60px;
    height: auto;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #fff;
}

.woocommerce-product-gallery .flex-control-nav img:hover {
    border-color: #aaa;
    transform: scale(1.02);
}

.woocommerce-product-gallery .flex-control-nav img.flex-active {
    border-color: #00bfff;
    box-shadow: 0 0 4px rgba(0,191,255,0.4);
}


/* ===== Attribute Table ===== */
.woocommerce table.shop_attributes {
    width: 100%;
    max-width: 100%;
    border: 1px solid #ddd;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: none; /* remove floating effect */
}
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 13px;
    text-align: left;
}
.woocommerce table.shop_attributes th {
    background: #f8f8f8;
    font-weight: 600;
}

/* ===== Tabs (Description / Reviews) ===== */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 25px !important;
    padding-top: 0;
    border-top: 1px solid #eee;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #eee;
    padding-left: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-size: 14px;
    padding: 8px 16px;
    background: none;
    border-radius: 0;
    color: #333;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    background: none;
    color: #00bfff;
    border-bottom: 2px solid #00bfff;
}


/* ===== Mobile Optimizations ===== */
@media only screen and (max-width: 767px) {
	
	.site .site-content #primary .ast-woocommerce-container{ padding-top: 80px !important; padding-left : 10px !important; padding-right : 10px !important;/* Optional: Add spacing inside */ border-radius: 10px; /* Optional: Rounded corners */ }
    .single-product .product {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .woocommerce-product-gallery {
        flex: 1 1 100%;
    }
    .woocommerce-product-gallery .flex-control-nav {
        justify-content: left;
        gap: 8px;
    }
    .woocommerce-product-gallery .flex-control-nav li {
        max-width: 60px;
    }
    .woocommerce div.product .summary {
        flex: 1 1 100%;
    }
    .woocommerce div.product .product_title {
        text-align: left;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: anywhere !important;
    }
    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        font-size: 18px;
        text-align: left;
    }
    .woocommerce div.product .woocommerce-product-details__short-description {
        font-size: 14px;
        margin-left: -30px;
        text-align: left;
    }
    .woocommerce div.product form.cart .quantity input {
        width: 50px;
        height: 40px;
    }
    .woocommerce div.product .product_meta {
        text-align: left;
    }
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        font-size: 13px;
        padding: 8px 16px;
    }
    .woocommerce table.shop_attributes {
        max-width: 100%;
        text-align: left;
    }
    .woocommerce table.shop_attributes th,
    .woocommerce table.shop_attributes td {
        width: auto;
        font-size: 13px;
        padding: 8px 12px;
        text-align: left;
    }
    .woocommerce ul.products li.product {
        padding: 10px;
    }
    .woocommerce ul.products li.product h2.woocommerce-loop-product__title {
        font-size: 14px;
        text-align: left;
    }
    .woocommerce ul.products li.product .price {
        font-size: 14px;
        text-align: left;
    }
    .woocommerce ul.products li.product a.button {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }
}

/* ===== Category Card Styling ===== */
.woocommerce ul.products li.product-category {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 280px;
    text-align: center;
    position: relative;
}
.woocommerce ul.products li.product-category img {
    max-height: 150px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    width: 100%;
}
.woocommerce ul.products li.product-category h2.woocommerce-loop-category__title {
    font-size: 16px;
    color: #333333;
    font-weight: 600;
    margin: 0;
    padding: 0;
}
.woocommerce ul.products li.product-category .count {
    display: none;
}
.woocommerce ul.products li.product-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===== YITH WAPO Options Styling ===== */
.yith-wapo-container .options.per-row-1 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 5px;
}
.yith-wapo-container .yith-wapo-option {
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.3s ease;
    font-size: 12px;
}
.yith-wapo-container .yith-wapo-option:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.yith-wapo-container .image-container {
    text-align: center;
    margin-bottom: 6px;
}
.yith-wapo-container .image-container img {
    max-width: 60px !important;
    height: auto;
}
.yith-wapo-container .checkbox-button-container {
    display: flex;
    justify-content: center;
    margin-top: 4px;
    margin-bottom: 10px;
    font-size:12px;
}
.yith-wapo-container .description {
    text-align: center;
}
.yith-wapo-container .yith-wapo-option label,
.yith-wapo-container .yith-wapo-option .option-title,
.yith-wapo-container .yith-wapo-option .label,
.yith-wapo-container .yith-wapo-option span {
    font-size: 12px !important;
    line-height: 1.2em !important;
    font-weight: 500;
    text-align: left;
}

/* Responsive WAPO tweaks */
@media (max-width: 767px) {
    .yith-wapo-container .options.per-row-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .yith-wapo-container .image-container img {
        max-width: 70px !important;
    }
}
@media (max-width: 480px) {
    .yith-wapo-container .options.per-row-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .yith-wapo-container .image-container img {
        max-width: 50px !important;
    }
}

/* Add top spacing below main site header for search results page */
body.search .search-header {
  padding-top: 200px; /* Adjust value as needed */
}

/* --- Search Results Page Product Cards --- */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 120px; /* adds top space below header */
  padding: 40px 0;
}

.search-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  position: relative;
}

.search-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* --- Product Image --- */
.search-thumb {
  background: #fafafa;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: left;
  height: 240px;
}

.search-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.search-item:hover .search-thumb img {
  transform: scale(1.05);
}

/* --- Product Content --- */
.search-content {
  padding: 20px;
  border-top: 1px solid #f0f0f0;
}

.search-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
  min-height: 40px; /* keeps consistent height for all titles */
}

.search-price {
  font-size: 15px;
  color: #006aff;
  font-weight: 600;
}

/* --- Responsive Grid --- */
@media (max-width: 1024px) {
  .search-results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
}

.pagination .page-numbers:hover,
.pagination .current {
  background: #00a6ff;
  color: #fff;
  border-color: #0073aa;
}

/* Hide Jetpack's related posts section (the text list) */
#jp-relatedposts {
  display: none !important;
}

/* Footer Background & Global Text */
.site-footer {
    background: #2d2d2d;
    padding: 60px 0 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.site-footer a {
    color: #d9d9d9;
    text-decoration: none;
    transition: 0.3s;
}

.site-footer a:hover {
    color: #00a6ff;
}

/* 4 Column Footer Grid */
.footer-widgets {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    padding: 0 80px;
}

/* Column Titles */
.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #ffffff;
}

/* Contact Icons */
.footer-contact i {
    margin-right: 8px;
    color: #00a6ff;
}

/* Social Icons */
.footer-social-icons {
    margin-top: 18px;
}

.footer-social-icons a {
    margin-right: 14px;
    font-size: 20px;
    color: #00a6ff;
}

/* Address Text */
.footer-address p {
    margin: 6px 0;
    line-height: 22px;
}

/* Copyright */
.footer-bottom {
    background: #232323;
    padding: 12px 0;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    margin-top: 40px;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive */
@media(max-width: 900px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        padding: 0 30px;
    }
}

@media(max-width: 600px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-social-icons {
        justify-content: center;
    }
}

/* Footer Background & Global Text */
.site-footer {
    background: #2b2b2b;
    padding: 60px 0 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin-top: 0 !important;
}

.site-footer a {
    color: #e1e1e1;
    text-decoration: none;
    transition: 0.3s;
}

.site-footer a:hover {
    color: #00a6ff;
}

/* Fix Floating Gap Top */
footer#colophon,
.ast-footer-overlay {
    margin-top: 0 !important;
}

/* 4 Column Footer Grid */
.footer-widgets {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
    padding: 0 100px;
}

/* Column Titles */
.footer-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #ffffff;
}

/* Contact Icons Fix */
.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-contact i {
    font-size: 22px;
    margin-right: 10px;
    color: #00a6ff;
}

/* Social Icons */
.footer-social-icons a {
    margin-right: 14px;
    font-size: 22px;
    color: #00a6ff;
    display: inline-block;
    transition: 0.2s;
}

.footer-social-icons a:hover {
    transform: translateY(-3px);
}

/* Address */
.footer-address p {
    line-height: 24px;
    margin-bottom: 4px;
}

/* Copyright */
.footer-bottom {
    background: #1f1f1f;
    padding: 14px 0;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    margin-top: 50px;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive */
@media(max-width: 1024px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        padding: 0 40px;
        gap: 40px;
    }
}

@media(max-width: 600px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 20px;
    }

    .footer-contact p,
    .footer-social-icons {
        justify-content: center;
    }

    .footer-social-icons a {
        margin: 0 8px;
    }
}

/* Hide Jetpack / infinite scroll wrapper on shop pages */
.post-type-archive-product .infinite-wrap,
.tax-product_cat .infinite-wrap {
    display: none !important;
}


@media (max-width: 921px) {
    #content {
        padding-top: 40px;
    }
}