/*
Theme Name: TechArtBD Minimal Store
Theme URI: https://techartbd.com
Author: TechArtBD
Description: A clean, lightweight, fast WooCommerce theme designed for TechArtBD handcrafted gifts, lamps, and creative tech products.
Version: 1.0.0
Text Domain: techartbd
*/

:root {
  --bg-main: #fafafa;
  --bg-card: #ffffff;
  --text-dark: #18181b;
  --text-muted: #52525b;
  --accent: #d97706;
  --accent-hover: #b45309;
  --border: #e4e4e7;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hind Siliguri", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.brand-logo span {
  color: var(--accent);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-btn {
  background: var(--text-dark);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.cart-btn:hover {
  background: var(--accent);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  color: #fff;
  padding: 72px 20px;
  text-align: center;
  border-radius: var(--radius);
  margin: 24px auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-section h1 {
  font-size: 2.4rem;
  max-width: 720px;
  margin: 0 auto 14px;
  line-height: 1.25;
}

.hero-section p {
  color: #d4d4d8;
  max-width: 580px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* Section Headings */
.section-block {
  padding: 48px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.section-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Simple Categories Grid (Max 4) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.category-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.category-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* WooCommerce Product Grid & Direct Order */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 22px !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s;
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.woocommerce ul.products li.product img {
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 12px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.05rem !important;
  color: var(--text-dark);
  padding: 0 0 6px !important;
}

.woocommerce ul.products li.product .price {
  color: var(--accent) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  margin-bottom: 12px !important;
}

.product-btn-group {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.woocommerce a.button,
.direct-order-btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.woocommerce a.button {
  background: #f4f4f5 !important;
  color: var(--text-dark) !important;
}

.woocommerce a.button:hover {
  background: #e4e4e7 !important;
}

.direct-order-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  transition: background 0.2s;
}

.direct-order-btn:hover {
  background: var(--accent-hover);
}

/* Main Page Content Wrapper */
.page-content-wrapper {
  padding: 40px 20px;
  min-height: 60vh;
}

/* Trust Strip & Footer */
.trust-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: center;
}

.trust-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-footer {
  background: var(--text-dark);
  color: #a1a1aa;
  padding: 40px 20px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .hero-section h1 {
    font-size: 1.8rem;
  }
}