/*
 Theme Name:   K&D Medical Direct
 Theme URI:    https://www.kdmedicaldirect.com
 Description:  Custom storefront child theme for K&D Medical Direct
 Author:       K&D Medical Direct LLC
 Template:     storefront
 Version:      1.0.0
 Text Domain:  kd-medical
*/

:root {
  --kd-primary: #0071BC;
  --kd-primary-hover: #005a96;
  --kd-dark: #1a2332;
  --kd-darker: #111827;
  --kd-accent: #00a8e8;
  --kd-success: #28a745;
  --kd-warning: #e6a817;
  --kd-bg: #f5f7fa;
  --kd-surface: #ffffff;
  --kd-text: #1a1a2e;
  --kd-text-muted: #5b6470;
  --kd-border: #e0e4e8;
  --kd-shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --kd-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --kd-radius: 8px;
  --kd-container: 1600px;
}

/* Hide Storefront's default chrome on all pages (our header.php/footer.php replace it) */
.site-header,
.site-footer,
.storefront-handheld-footer-bar,
.storefront-primary-navigation {
  display: none !important;
}
/* Hide breadcrumb only on home page */
body.home .storefront-breadcrumb,
body.home .page-template-default .entry-header {
  display: none !important;
}

/* Break out of Storefront's col-full container on home page */
body.home .col-full,
body.home .col-full,
body.home #content > .col-full {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.home .site-content {
  padding: 0 !important;
  margin: 0 !important;
}
body.home .content-area {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
body.home #content > .col-full > .woocommerce:empty {
  display: none;
}
body.home .site-content::before,
body.home .site-content::after {
  display: none !important;
}

.kd-page *, .kd-page *::before, .kd-page *::after { box-sizing: border-box; }
.kd-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--kd-text);
  background: var(--kd-bg);
  line-height: 1.5;
}
.kd-page a { color: inherit; text-decoration: none; }
.kd-page img { display: block; max-width: 100%; }

.kd-topbar {
  background: var(--kd-darker);
  padding: 8px 0;
  font-size: 12px;
}
.kd-topbar-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.kd-topbar-center a, .kd-topbar-center span { color: #fff; transition: color 0.2s; }
.kd-topbar-center a:hover { color: var(--kd-accent); }
.kd-topbar-center .divider { color: rgba(255,255,255,0.3); }

.kd-header {
  background: var(--kd-dark);
  padding: 4px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.kd-header-container {
  max-width: var(--kd-container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.kd-logo { flex-shrink: 0; }
.kd-logo img { height: 50px; width: auto; max-width: 260px; }
.kd-logo-text {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.kd-logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--kd-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.kd-search {
  flex: 1;
  max-width: 900px;
  display: flex;
  height: 44px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  border: none;
}
.kd-search-category {
  appearance: none;
  width: 160px;
  border: 0;
  padding: 0 36px 0 16px;
  font-size: 14px;
  background: #4a4a4a;
  color: #fff;
  cursor: pointer;
  outline: none;
  min-width: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border-radius: 4px 0 0 4px;
}
.kd-search-input {
  flex: 1;
  border: 0;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  min-width: 0;
  background: #fff;
  color: #333;
}
.kd-search-btn {
  padding: 0 28px;
  background: var(--kd-primary);
  color: #fff;
  border: 0;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0 4px 4px 0;
}
.kd-search-btn:hover { background: var(--kd-primary-hover); }

.kd-header-icons {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.kd-header-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 6px;
  color: #fff !important;
  transition: all 0.2s;
  font-size: 10px;
  font-weight: 500;
  position: relative;
  text-decoration: none !important;
}
.kd-header-icon:hover { color: var(--kd-primary) !important; }
.kd-header-icon svg { width: 22px; height: 22px; stroke: #fff !important; fill: none; }
.kd-header-icon:hover svg { stroke: var(--kd-primary) !important; }
.kd-header-icon span { color: #fff !important; }
.kd-cart-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--kd-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kd-navstrip {
  background: var(--kd-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  height: 42px;
  display: flex;
  align-items: center;
}
.kd-nav-container {
  max-width: var(--kd-container);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.kd-nav-left, .kd-nav-right {
  display: flex;
  align-items: center;
}
.kd-nav-left a, .kd-nav-right a {
  color: #ccc;
  font-size: 13px;
  font-weight: 500;
  padding: 0 14px;
  height: 42px;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  white-space: nowrap;
}
.kd-nav-left a:hover, .kd-nav-right a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.kd-nav-highlight {
  color: var(--kd-accent) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 12px !important;
  letter-spacing: 0.5px;
}

.kd-hero {
  display: block;
  max-width: none;
  float: none;
  width: 100%;
  background: #f5f5f5;
  padding: 16px 24px;
}
.kd-hero-container {
  max-width: var(--kd-container);
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.kd-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--kd-surface);
  border-radius: var(--kd-radius);
  overflow: hidden;
  box-shadow: var(--kd-shadow-sm);
}
.kd-sidebar-header {
  background: var(--kd-primary);
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.kd-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kd-sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--kd-text);
  transition: all 0.15s;
  border-bottom: 1px solid var(--kd-border);
  text-decoration: none;
}
.kd-sidebar-menu li a:hover {
  background: #f0f4f8;
  color: var(--kd-primary);
}
.kd-sidebar-menu .menu-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.kd-sidebar-menu .menu-arrow {
  width: 14px;
  height: 14px;
  stroke: #999;
  fill: none;
  stroke-width: 2;
  margin-left: auto;
  transition: transform 0.2s;
}
.kd-menu-parent.open .menu-arrow { transform: rotate(90deg); }
.kd-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  background: #f8fafc;
}
.kd-menu-parent.open .kd-submenu { display: block; }
.kd-submenu li a {
  padding-left: 44px;
  font-size: 13px;
  color: var(--kd-text-muted);
}

.kd-carousel-wrapper {
  flex: 1;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.kd-promo-carousel {
  width: 100%;
  height: 100%;
  flex: 1;
}
.kd-promo-slide {
  display: none;
  position: relative;
  width: 100%;
  height: 400px;
  background: #f5f5f5;
  overflow: hidden;
}
.kd-promo-slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Image fills the slide, crops to fit */
.kd-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Text overlay when image is present */
.kd-slide-content.kd-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Default slide content (no image) */
.kd-promo-slide .kd-slide-content {
  text-align: center;
  z-index: 2;
  padding: 40px;
}
.kd-promo-slide h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.kd-promo-slide p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.kd-slide-btn {
  display: inline-block;
  background: var(--kd-primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s;
  text-shadow: none;
}
.kd-slide-btn:hover {
  background: var(--kd-primary-hover);
  color: #fff;
}
.kd-cta-btn {
  display: inline-block;
  background: var(--kd-primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s;
}
.kd-cta-btn:hover { background: var(--kd-primary-hover); }

.kd-carousel-prev, .kd-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 0;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.kd-carousel-prev:hover, .kd-carousel-next:hover {
  background: #fff;
}
.kd-carousel-prev { left: 16px; }
.kd-carousel-next { right: 16px; }
.kd-carousel-prev svg, .kd-carousel-next svg {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  min-height: 32px;
  stroke: #333;
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* =========================================
   FEATURED ROW - Side by Side Layout
   ========================================= */
.kd-featured-row {
  background: #f5f5f5;
  padding: 16px 24px 24px;
}
.kd-featured-row-container {
  max-width: var(--kd-container);
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: stretch;
}
.kd-promo-card-wrapper {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kd-ad-placement {
  width: 100%;
  flex: 1;
  background: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.kd-ad-placement img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.kd-ad-placement a {
  display: block;
  width: 100%;
  height: 100%;
}
.kd-ad-placement:has(img) {
  border: none;
  background: none;
}
.kd-ad-label {
  color: #999;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.kd-featured-content-wrapper {
  flex: 1;
  min-width: 0;
}

/* =========================================
   NEWLY LISTED SECTION
   ========================================= */
.kd-newly-listed-section {
  background: #fff;
  padding: 32px 24px;
  border-top: 1px solid var(--kd-border);
}
.kd-section-container {
  max-width: var(--kd-container);
  margin: 0 auto;
}

.kd-featured-section {
  max-width: var(--kd-container);
  margin: 0 auto;
  padding: 0 16px 40px;
}
.kd-featured-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--kd-dark), var(--kd-darker));
  padding: 14px 20px;
  border-radius: var(--kd-radius) var(--kd-radius) 0 0;
  flex-wrap: wrap;
  gap: 8px;
}
.kd-featured-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kd-featured-label {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.kd-featured-badge {
  background: var(--kd-primary);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.kd-featured-sub {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}
.kd-featured-right a {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  transition: color 0.2s;
}
.kd-featured-right a:hover { color: #fff; }

.kd-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--kd-border);
  border: 1px solid var(--kd-border);
  border-top: 0;
  border-radius: 0 0 var(--kd-radius) var(--kd-radius);
  overflow: hidden;
}

.kd-product-card {
  background: var(--kd-surface);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.kd-product-card:hover { box-shadow: 0 0 0 2px var(--kd-primary) inset; }
.kd-product-card .product-img {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.kd-product-card .product-img img {
  max-height: 140px;
  max-width: 100%;
  object-fit: contain;
}
.kd-product-card .product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--kd-text);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kd-product-card .product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--kd-primary);
  margin-bottom: 8px;
}
.kd-product-card .product-stock {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.kd-product-card .stock-in { color: var(--kd-success); }
.kd-product-card .stock-low { color: var(--kd-warning); }
.kd-product-card .stock-out { color: #999; }
.kd-product-card .add-to-cart-btn {
  display: block;
  width: 100%;
  padding: 8px 0;
  background: var(--kd-primary);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  margin-top: auto;
}
.kd-product-card .add-to-cart-btn:hover { background: var(--kd-primary-hover); }

.kd-footer-promo {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--kd-dark);
  padding: 32px 16px;
  flex-wrap: wrap;
}
.kd-promo-section {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 40px;
}
.kd-promo-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--kd-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kd-promo-icon svg {
  width: 24px; height: 24px;
  stroke: #fff; fill: none;
  stroke-width: 2;
}
.kd-promo-info h3 { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.kd-promo-info p { color: rgba(255,255,255,0.7); font-size: 13px; margin: 0; }
.kd-promo-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

.kd-footer {
  background: var(--kd-darker);
  padding: 24px 16px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}
.kd-footer strong { color: #fff; }
.kd-footer a { color: var(--kd-accent); transition: color 0.2s; }
.kd-footer a:hover { color: #fff; }
.kd-footer-inner {
  max-width: var(--kd-container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.kd-footer-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 1100px) {
  .kd-sidebar { width: 240px; }
  .kd-search { max-width: 480px; }
  .kd-promo-card-wrapper { width: 240px; }
}
@media (max-width: 900px) {
  .kd-header-container { flex-wrap: wrap; }
  .kd-search { order: 3; max-width: 100%; flex-basis: 100%; }
  .kd-hero-container { flex-direction: column; }
  .kd-sidebar { width: 100%; }
  .kd-carousel-wrapper { min-height: 260px; }
  .kd-featured-row-container { flex-direction: column; }
  .kd-promo-card-wrapper { width: 100%; flex-direction: row; }
  .kd-ad-placement { min-height: 120px; }
}
@media (max-width: 768px) {
  .kd-logo-text { font-size: 18px; }
  .kd-nav-left a, .kd-nav-right a { padding: 0 8px; font-size: 12px; }
  .kd-promo-section { padding: 12px 20px; }
  .kd-featured-bar { padding: 10px 14px; }
  .kd-product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .kd-catalog-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .kd-promo-card-wrapper { display: none; }
  .kd-featured-row { padding: 12px; }
}
@media (max-width: 520px) {
  .kd-header-icons span:not(.kd-cart-badge) { display: none; }
  .kd-search-category { width: 100px; }
  .kd-product-grid { grid-template-columns: 1fr 1fr; }
  .kd-promo-slide h2 { font-size: 22px; }
  .kd-footer-promo { flex-direction: column; }
  .kd-promo-divider { width: 80%; height: 1px; }
}

/* =====================================================
   GLOBAL PAGE STYLES (non-home pages)
   ===================================================== */

/* Content area on non-home pages */
body:not(.home) #content > .col-full {
  max-width: var(--kd-container);
  margin: 0 auto;
  padding: 30px 24px;
}

body:not(.home) .site-content {
  padding-top: 0 !important;
}

/* Breadcrumbs styling */
.storefront-breadcrumb {
  margin: 0 0 8px !important;
  padding: 0 !important;
}
.storefront-breadcrumb .woocommerce-breadcrumb,
.woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--kd-text-muted);
  padding: 12px 0 !important;
  margin: 0 !important;
}
.woocommerce-breadcrumb a {
  color: var(--kd-primary) !important;
}
.woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}

/* =====================================================
   SINGLE PRODUCT PAGE
   ===================================================== */
.single-product div.product {
  background: var(--kd-surface);
  border-radius: var(--kd-radius);
  padding: 30px;
  box-shadow: var(--kd-shadow-sm);
  margin-bottom: 30px;
}

/* Product gallery */
.single-product div.product div.images {
  margin-bottom: 20px;
}
.single-product div.product div.images img {
  border-radius: var(--kd-radius);
  border: 1px solid var(--kd-border);
}

/* Product title */
.single-product div.product .product_title {
  font-size: 28px;
  font-weight: 700;
  color: var(--kd-dark);
  margin-bottom: 10px;
}

/* Product price */
.single-product div.product p.price,
.single-product div.product span.price {
  font-size: 24px !important;
  color: var(--kd-primary) !important;
  font-weight: 700;
}

/* Stock status */
.single-product div.product .stock {
  font-weight: 600;
  font-size: 14px;
}
.single-product div.product .stock.in-stock {
  color: var(--kd-success) !important;
}

/* Short description */
.single-product div.product .woocommerce-product-details__short-description {
  color: var(--kd-text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Quantity + Add to Cart */
.single-product div.product .cart .quantity .qty {
  border: 1px solid var(--kd-border);
  border-radius: var(--kd-radius);
  padding: 8px 12px;
  font-size: 16px;
  width: 80px;
}

.single-product div.product .cart .single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: var(--kd-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--kd-radius) !important;
  padding: 12px 28px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  transition: background 0.2s;
  cursor: pointer;
}
.single-product div.product .cart .single_add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: var(--kd-primary-hover) !important;
}

/* Alt buttons (e.g. Update Cart) */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: var(--kd-primary) !important;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: var(--kd-primary-hover) !important;
}

/* Product meta (SKU, categories, tags) */
.single-product div.product .product_meta {
  border-top: 1px solid var(--kd-border);
  padding-top: 16px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--kd-text-muted);
}
.single-product div.product .product_meta a {
  color: var(--kd-primary);
}

/* Product tabs */
.single-product div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 0 20px !important;
  list-style: none !important;
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--kd-border) !important;
}
.single-product div.product .woocommerce-tabs ul.tabs::before {
  display: none !important;
}
.single-product div.product .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.single-product div.product .woocommerce-tabs ul.tabs li::before,
.single-product div.product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}
.single-product div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--kd-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.single-product div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--kd-primary);
  border-bottom-color: var(--kd-primary);
}
.single-product div.product .woocommerce-tabs .panel {
  padding: 20px 0;
  color: var(--kd-text);
  line-height: 1.7;
}
.single-product div.product .woocommerce-tabs .panel h2 {
  font-size: 20px;
  color: var(--kd-dark);
  margin-bottom: 12px;
}

/* Related products */
.single-product .related.products {
  background: var(--kd-surface);
  border-radius: var(--kd-radius);
  padding: 30px;
  box-shadow: var(--kd-shadow-sm);
}
.single-product .related.products > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--kd-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--kd-primary);
}

/* =====================================================
   SHOP / CATEGORY ARCHIVE PAGES
   ===================================================== */
.woocommerce ul.products li.product {
  background: var(--kd-surface);
  border-radius: var(--kd-radius);
  box-shadow: var(--kd-shadow-sm);
  padding: 16px;
  transition: box-shadow 0.2s, transform 0.15s;
  border: 1px solid var(--kd-border);
}
.woocommerce ul.products li.product:hover {
  box-shadow: var(--kd-shadow-md);
  transform: translateY(-2px);
}
.woocommerce ul.products li.product a img {
  border-radius: var(--kd-radius);
  margin-bottom: 12px !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px !important;
  font-weight: 600;
  color: var(--kd-dark);
  padding: 0 !important;
}
.woocommerce ul.products li.product .price {
  color: var(--kd-primary) !important;
  font-weight: 700;
  font-size: 16px !important;
}
.woocommerce ul.products li.product .button {
  border-radius: var(--kd-radius) !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  margin-top: 8px;
}

/* WooCommerce result count & ordering */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering select {
  font-size: 14px;
  color: var(--kd-text-muted);
}
.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--kd-border);
  border-radius: var(--kd-radius);
  padding: 8px 12px;
}

/* Page titles (shop, category) */
.woocommerce-products-header .page-title,
.term-description {
  color: var(--kd-dark);
}

/* =====================================================
   CART PAGE
   ===================================================== */
.woocommerce table.shop_table {
  border-radius: var(--kd-radius) !important;
  border: 1px solid var(--kd-border);
  overflow: hidden;
}
.woocommerce table.shop_table th {
  background: var(--kd-dark);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px !important;
}
.woocommerce table.shop_table td {
  padding: 16px !important;
  vertical-align: middle;
  border-color: var(--kd-border) !important;
}
.woocommerce .cart-collaterals .cart_totals {
  background: var(--kd-surface);
  border-radius: var(--kd-radius);
  padding: 24px;
  box-shadow: var(--kd-shadow-sm);
}

/* Checkout button */
.woocommerce a.button.checkout-button,
.wc-proceed-to-checkout a.checkout-button {
  background-color: var(--kd-success) !important;
  font-size: 16px !important;
  padding: 14px 32px !important;
  width: 100%;
  text-align: center;
}
.woocommerce a.button.checkout-button:hover,
.wc-proceed-to-checkout a.checkout-button:hover {
  background-color: #218838 !important;
}

/* =====================================================
   MY ACCOUNT PAGE
   ===================================================== */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--kd-surface);
  border-radius: var(--kd-radius);
  box-shadow: var(--kd-shadow-sm);
  overflow: hidden;
  border: 1px solid var(--kd-border);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px 50px 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--kd-text);
  border-bottom: 1px solid var(--kd-border);
  transition: background 0.15s, color 0.15s;
  text-align: center;
}
/* Override Storefront's float-right icon positioning */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
  float: none !important;
  margin-left: 0 !important;
  opacity: 0.4 !important;
  font-size: 16px;
  width: auto !important;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child a {
  border-bottom: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--kd-primary);
  color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover::before,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a::before {
  opacity: 1 !important;
  color: #fff;
}
/* Hide WP admin edit link on My Account page */
.woocommerce-account .edit-link,
.woocommerce-account div.edit-link {
  display: none !important;
}
/* Content area layout */
.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--kd-surface);
  border-radius: var(--kd-radius);
  box-shadow: var(--kd-shadow-sm);
  border: 1px solid var(--kd-border);
  padding: 30px;
}
.woocommerce-account .woocommerce-MyAccount-content a {
  color: var(--kd-primary);
}
.woocommerce-account .woocommerce-MyAccount-content a:hover {
  text-decoration: underline;
}
/* Page title */
.woocommerce-account .entry-header .entry-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--kd-dark);
  margin-bottom: 24px;
}

/* Login/Register forms */
.woocommerce form.login,
.woocommerce form.register {
  background: var(--kd-surface);
  border-radius: var(--kd-radius);
  padding: 30px;
  box-shadow: var(--kd-shadow-sm);
  border: 1px solid var(--kd-border);
}

/* Form inputs globally */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select {
  border: 1px solid var(--kd-border) !important;
  border-radius: var(--kd-radius) !important;
  padding: 10px 14px !important;
  font-size: 14px;
  transition: border-color 0.2s;
}
.woocommerce input[type="text"]:focus,
.woocommerce input[type="email"]:focus,
.woocommerce input[type="password"]:focus,
.woocommerce input[type="tel"]:focus,
.woocommerce textarea:focus {
  border-color: var(--kd-primary) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 188, 0.1);
}

/* WooCommerce notices/messages */
.woocommerce .woocommerce-message {
  border-top-color: var(--kd-success) !important;
}
.woocommerce .woocommerce-info {
  border-top-color: var(--kd-primary) !important;
}
.woocommerce .woocommerce-error {
  border-top-color: #dc3545 !important;
}
