/*
Theme Name: DarazCat Custom
Theme URI: https://darazcat.com/
Author: DarazCat
Description: Custom WooCommerce storefront inspired by the DarazCat homepage design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: darazcat
*/

:root {
  --dc-green: #075b1b;
  --dc-green-dark: #063d18;
  --dc-green-light: #edf5e9;
  --dc-orange: #e65b16;
  --dc-text: #171b17;
  --dc-muted: #687268;
  --dc-border: #dfe5dc;
  --dc-radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--dc-text); background: #fff;
  font-family: system-ui, -apple-system, "Noto Sans Bengali", "Hind Siliguri", Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.dc-announcement { background: var(--dc-green); color: #fff; text-align: center; padding: 8px 12px; font-weight: 700; font-size: 16px; }
.dc-header { background: #fff; border-bottom: 1px solid #edf0eb; position: relative; z-index: 20; }
.dc-header-inner { min-height: 82px; display: flex; align-items: center; gap: 24px; }
.dc-brand { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.dc-brand-mark { color: var(--dc-green); font-size: 42px; line-height: 1; }
.dc-brand-name { font-size: 30px; line-height: 1; font-weight: 850; letter-spacing: -1.2px; color: var(--dc-green-dark); }
.dc-brand-name span { color: var(--dc-orange); }
.dc-tagline { display: block; font-size: 10px; font-weight: 650; color: #354535; letter-spacing: .1px; margin-top: 4px; }
.dc-nav { display: flex; align-items: center; justify-content: center; gap: 22px; flex: 1; }
.dc-nav a { font-size: 14px; font-weight: 650; white-space: nowrap; }
.dc-nav a:hover, .dc-nav .current-menu-item > a { color: var(--dc-green); }
.dc-header-actions { display: flex; align-items: center; gap: 15px; }
.dc-search { display: flex; border: 1px solid #bfc8bf; border-radius: 30px; overflow: hidden; width: 190px; }
.dc-search input { border: 0; outline: 0; width: 100%; min-width: 0; padding: 9px 13px; background: transparent; font-size: 13px; }
.dc-search button { border: 0; background: transparent; color: var(--dc-green); padding: 0 12px; cursor: pointer; }
.dc-action { font-size: 12px; text-align: center; font-weight: 650; white-space: nowrap; }
.dc-action-icon { display: block; font-size: 22px; line-height: 1.1; }
.dc-cart-count { display: inline-flex; background: var(--dc-orange); color: #fff; border-radius: 20px; min-width: 18px; height: 18px; align-items: center; justify-content: center; font-size: 11px; margin-left: 3px; }
.dc-mobile-toggle { display: none; border: 0; background: transparent; color: var(--dc-green); font-size: 26px; cursor: pointer; }
.dc-hero { background: linear-gradient(100deg, #fffdf9 0%, #f8f6ef 48%, #eaf3e5 100%); overflow: hidden; }
.dc-hero-inner { min-height: 370px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 20px; padding-block: 30px; }
.dc-hero-copy { position: relative; z-index: 2; padding: 10px 0; }
.dc-eyebrow { color: #c28c3b; font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.dc-hero h1 { margin: 0 0 14px; color: var(--dc-green-dark); font-size: clamp(30px, 4vw, 46px); line-height: 1.22; font-weight: 900; }
.dc-hero h1 span { color: var(--dc-orange); display: block; }
.dc-hero p { font-size: 18px; margin: 0 0 22px; max-width: 470px; }
.dc-buttons { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dc-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: var(--dc-green); color: #fff; border: 0; border-radius: 28px; padding: 12px 22px; font-weight: 800; transition: .2s; cursor: pointer; }
.dc-btn:hover { background: var(--dc-green-dark); color: #fff; transform: translateY(-1px); }
.dc-text-link { font-weight: 750; color: var(--dc-green-dark); border-bottom: 1px solid currentColor; }
.dc-hero-visual { min-height: 300px; display: flex; align-items: center; justify-content: center; position: relative; }
.dc-hero-products { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.dc-hero-product { width: 52%; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); border-radius: 24px; padding: 12px; box-shadow: 0 15px 35px rgba(38,67,34,.12); }
.dc-hero-product:first-child { transform: rotate(-3deg) translateY(12px); }
.dc-hero-product:last-child { transform: rotate(3deg) translateY(-10px); }
.dc-hero-product img { width: 100%; height: 220px; object-fit: contain; border-radius: 14px; }
.dc-hero-product strong { display: block; text-align: center; font-size: 14px; margin-top: 8px; }
.dc-categories { padding: 28px 0 10px; }
.dc-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dc-category-card { background: var(--dc-green-light); border-radius: 18px; padding: 12px; display: flex; align-items: center; gap: 12px; min-height: 105px; transition: .2s; }
.dc-category-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.07); }
.dc-category-card img { width: 95px; height: 78px; object-fit: contain; }
.dc-category-card span { font-size: 17px; font-weight: 850; }
.dc-section { padding: 30px 0; }
.dc-section-heading { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 0 0 22px; color: var(--dc-green-dark); font-size: 30px; font-weight: 900; text-align: center; }
.dc-section-heading:before, .dc-section-heading:after { content: ""; width: 95px; height: 1px; background: #82a879; }
.dc-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dc-product-card { border: 1px solid var(--dc-border); border-radius: 17px; overflow: hidden; background: #fff; box-shadow: 0 3px 9px rgba(0,0,0,.035); }
.dc-product-image { background: #fafafa; display: flex; align-items: center; justify-content: center; height: 245px; padding: 12px; }
.dc-product-image img { width: 100%; height: 100%; object-fit: contain; }
.dc-product-info { padding: 13px 16px 16px; }
.dc-product-info h3 { font-size: 18px; line-height: 1.35; margin: 0 0 10px; font-weight: 800; }
.dc-product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dc-price { color: var(--dc-orange); font-size: 22px; font-weight: 900; }
.dc-price del { color: #999; font-size: 13px; font-weight: 500; }
.dc-product-bottom .button, .dc-product-bottom a.add_to_cart_button { background: var(--dc-green); color: #fff; border-radius: 8px; padding: 9px 13px; font-size: 13px; font-weight: 800; border: 0; }
.dc-product-bottom .button:hover, .dc-product-bottom a.add_to_cart_button:hover { background: var(--dc-green-dark); color: #fff; }
.dc-benefits { background: #eff6ec; border-radius: 22px; padding: 22px 16px; margin: 4px auto 30px; display: grid; grid-template-columns: repeat(4, 1fr); }
.dc-benefit { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 5px 12px; border-right: 1px solid #8cae83; font-weight: 800; }
.dc-benefit:last-child { border: 0; }
.dc-benefit-icon { font-size: 30px; color: var(--dc-green); }
.dc-footer { background: linear-gradient(110deg, #063d18, #0b5425); color: #fff; padding: 28px 0 18px; margin-top: 20px; }
.dc-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dc-footer .dc-brand-name, .dc-footer .dc-tagline { color: #fff; }
.dc-footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.dc-footer-links a:hover { color: #d9efce; }
.dc-footer-bottom { text-align: center; opacity: .75; font-size: 12px; padding-top: 18px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.2); }
.woocommerce .woocommerce-breadcrumb { margin: 20px auto; width: min(1180px, calc(100% - 36px)); }
.woocommerce ul.products li.product { border: 1px solid var(--dc-border); border-radius: 14px; padding: 12px; overflow: hidden; }
.woocommerce ul.products li.product a img { border-radius: 10px; }
.woocommerce div.product .product_title { color: var(--dc-green-dark); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { background: var(--dc-green); color: #fff; border-radius: 8px; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--dc-green-dark); color: #fff; }
@media (max-width: 980px) {
  .dc-header-inner { gap: 12px; }
  .dc-brand { min-width: auto; }
  .dc-nav { gap: 13px; }
  .dc-search { width: 155px; }
  .dc-hero-inner { min-height: 330px; }
  .dc-hero-product img { height: 180px; }
  .dc-category-card { gap: 6px; }
  .dc-category-card img { width: 75px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 26px, 600px); }
  .dc-announcement { font-size: 13px; padding: 7px; }
  .dc-header-inner { min-height: 68px; justify-content: space-between; }
  .dc-brand-mark { font-size: 34px; }
  .dc-brand-name { font-size: 25px; }
  .dc-tagline { font-size: 9px; }
  .dc-mobile-toggle { display: block; order: 3; }
  .dc-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 15px 22px 20px; flex-direction: column; align-items: flex-start; box-shadow: 0 12px 18px rgba(0,0,0,.1); }
  .dc-nav.is-open { display: flex; }
  .dc-header-actions { gap: 10px; }
  .dc-search { width: 38px; border: 0; }
  .dc-search input { display: none; }
  .dc-search button { font-size: 19px; padding: 5px; }
  .dc-action { font-size: 10px; }
  .dc-action-icon { font-size: 19px; }
  .dc-hero-inner { grid-template-columns: 1fr; gap: 8px; padding: 28px 0 20px; }
  .dc-hero-copy { text-align: center; }
  .dc-hero h1 { font-size: 31px; }
  .dc-hero p { font-size: 15px; margin-inline: auto; }
  .dc-buttons { justify-content: center; }
  .dc-hero-visual { min-height: 210px; }
  .dc-hero-product { width: 48%; }
  .dc-hero-product img { height: 135px; }
  .dc-category-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .dc-category-card { min-height: 82px; padding: 8px; }
  .dc-category-card img { width: 65px; height: 62px; }
  .dc-category-card span { font-size: 14px; }
  .dc-section { padding: 22px 0; }
  .dc-section-heading { font-size: 23px; gap: 8px; }
  .dc-section-heading:before, .dc-section-heading:after { width: 35px; }
  .dc-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dc-product-image { height: 155px; padding: 7px; }
  .dc-product-info { padding: 10px; }
  .dc-product-info h3 { font-size: 14px; }
  .dc-product-bottom { align-items: flex-start; flex-direction: column; }
  .dc-price { font-size: 18px; }
  .dc-product-bottom .button, .dc-product-bottom a.add_to_cart_button { font-size: 12px; padding: 8px 10px; }
  .dc-benefits { grid-template-columns: repeat(2, 1fr); gap: 12px 4px; padding: 15px 8px; }
  .dc-benefit { justify-content: flex-start; border: 0; font-size: 13px; padding: 4px 8px; }
  .dc-benefit-icon { font-size: 23px; }
  .dc-footer-inner { flex-direction: column; align-items: flex-start; }
  .dc-footer-links { gap: 12px; }
}
@media (max-width: 380px) {
  .dc-header-actions .dc-action:first-of-type { display: none; }
  .dc-product-grid { grid-template-columns: 1fr 1fr; }
  .dc-category-card span { font-size: 12px; }
}
