/*
Theme Name: Khut
Theme URI: https://khut.shop/
Author: WeBros Digital
Author URI: https://www.webros.digital
Description: A fast, custom-designed theme built for KHUT.
Version: 4.10.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khut
Tags: e-commerce, responsive, woocommerce
*/




/* Basic layout grid */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #f8f8f8;
  padding: 20px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-branding a {
  font-size: 1.5rem;
  text-decoration: none;
  color: #333;
}
.main-navigation .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.main-navigation .menu li {
  margin-left: 20px;
}

/* Footer */
.site-footer {
  background: #111;
  color: #fff;
  padding: 40px 0 20px;
  text-align: center;
}
.footer-widgets {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.footer-column {
  width: 30%;
}
.site-info {
  font-size: 0.875rem;
}




/* ========================================
   GLOBAL TYPOGRAPHY & COLOR SYSTEM
======================================== */

/* Variables (Color system) */
:root {
  --color-primary: #1d4ed8;   /* Astra-like blue */
  --color-secondary: #6b7280; /* Muted gray */
  --color-background: #ffffff;
  --color-text: #1e293b;
  --color-heading: #0f172a;
  --color-footer-bg: #111827;
  --color-footer-text: #f1f5f9;
}

/* Reset / Base */
body {
  /*
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  */
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
  margin: 0;
  padding: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.6em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Paragraphs */
p {
  margin-bottom: 1.2em;
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Buttons */
button,
input[type="submit"],
.wp-block-button__link {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 4px;
}
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background-color: #1e40af; /* darker blue */
}


/* Mobile nav toggle icon */
.nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  padding: 10px;
}

/* Default nav (desktop) */
.main-navigation .menu {
  display: flex;
}
.main-navigation .menu li {
  margin-left: 20px;
}

/* Responsive rules */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-navigation .menu {
    flex-direction: column;
    display: none;
    background: #f8f8f8;
    padding: 10px;
    margin-top: 10px;
  }

  .main-navigation.active .menu {
    display: flex;
  }

  .main-navigation .menu li {
    margin: 10px 0;
  }

  .woocommerce div.product {
  flex-direction: column;
}

}


/* Blog & Archive */
.single-post h1,
.archive h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.post-meta {
  font-size: 0.875rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}
.archive-list {
  list-style: none;
  padding: 0;
}
.archive-list li {
  margin-bottom: 1rem;
}
.not-found {
  text-align: center;
  padding: 80px 20px;
}


/* Sidebar Layout */
.content-with-sidebar {
  display: flex;
  gap: 30px;
}
.content-area {
  flex: 3;
}
.sidebar {
  flex: 1;
}
.widget {
  background: #f5f5f5;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}
.widget-title {
  margin-top: 0;
  color: var(--color-heading);
}
@media (max-width: 768px) {
  .content-with-sidebar {
    flex-direction: column;
  }
}


/* WooCommerce Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.woocommerce ul.products li.product {
  border: 1px solid #ddd;
  padding: 15px;
  background: #fff;
  border-radius: 4px;
  text-align: center;
}
.woocommerce ul.products li.product h2 {
  font-size: 1.1rem;
}
.woocommerce ul.products li.product .price {
  font-weight: bold;
  color: var(--color-primary);
}


/* Single Product Page */
.woocommerce div.product {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 60px;
}

.woocommerce div.product div.images {
  flex: 1 1 400px;
}

.woocommerce div.product div.summary {
  flex: 1 1 400px;
}

.woocommerce div.product .product_title {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.woocommerce div.product p.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-primary);
}

.woocommerce div.product .woocommerce-tabs {
  margin-top: 40px;
}

.woocommerce div.product .woocommerce-tabs h2 {
  font-size: 1.5rem;
}

/* Add to Cart button */
.woocommerce div.product form.cart button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
}
.woocommerce div.product form.cart button:hover {
  background: #1e40af;
}


/* Cart Table */
.woocommerce-cart-form table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}
.woocommerce-cart-form th,
.woocommerce-cart-form td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.woocommerce-cart-form .actions {
  text-align: right;
}

/* Checkout Layout */
.checkout-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.billing-column {
  flex: 2;
}
.order-column {
  flex: 1;
  background: #f9fafb;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .checkout-columns {
    flex-direction: column;
  }
}

/* Product Card Enhancements */
.woocommerce ul.products li.product {
  position: relative;
  transition: box-shadow 0.3s ease;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0.5em 0;
  font-size: 1.1rem;
}
.woocommerce ul.products li.product img {
  max-width: 100%;
  border-radius: 4px;
}

/* Sale Badge */
.woocommerce span.onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc2626;
  color: #fff;
  padding: 5px 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 10;
}

.stock-status {
  margin-top: 5px;
  font-size: 0.85rem;
}
.in-stock {
  color: #16a34a;
}
.out-of-stock {
  color: #dc2626;
}

.woocommerce-cart .cart-empty {
  font-size: 1.2rem;
  margin: 40px 0;
  text-align: center;
}
.woocommerce-cart .return-to-shop a {
  display: inline-block;
  margin-top: 20px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
}

/* Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}
.woocommerce-message { background: #ecfdf5; color: #065f46; }
.woocommerce-error { background: #fef2f2; color: #991b1b; }
.woocommerce-info { background: #eff6ff; color: #1d4ed8; }

/* Form fields */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce textarea,
.woocommerce select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 15px;
}


.logo {
  max-height: 60px;
  width: auto;
  height: 60px;
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Full-width layout for Elementor */
.full-width {
  max-width: 100%;
  padding: 0;
}


.product-single-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.product-image {
  flex: 1 1 400px;
}
.product-summary {
  flex: 1 1 400px;
}
@media (max-width: 768px) {
  .product-single-layout {
    flex-direction: column;
  }
}
