/*
Theme Name: Oromar Store
Template: storefront
Version: 3.0.1
Author: Oromar
Description: Oromar Shop — Clean minimalist WooCommerce theme, metastrip-inspired
*/

/* ===== CSS Variables — Oromar Minimalist ===== */
:root {
  --bg: #f5f0eb;
  --bg-secondary: #efe9e1;
  --text: #1a1a1a;
  --text-muted: #777;
  --accent: #fd560f;
  --accent-hover: #e04a0a;
  --white: #ffffff;
  --border: #e5e0d8;
  --border-light: #ede8e0;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius: 6px;
}

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== Base Reset ===== */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 1rem;
  font-weight: 600;
}

a { color: var(--text); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-branding { display: flex; align-items: center; gap: 10px; }
.site-logo { height: 18px; width: auto; display: block; }

.site-branding-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.current::after { width: 100%; }

.nav-menu a:hover { color: var(--text); }

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

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.lang-switcher a {
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--text);
  background: var(--border-light);
}

.cart-icon {
  position: relative;
  color: var(--text);
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.cart-icon:hover { background: var(--border-light); color: var(--text); }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ===== Header Spacer ===== */
.header-spacer { height: 64px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 70vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border: 1.5px solid var(--text);
  border-radius: 4px;
  transition: var(--transition);
}

.hero-cta:hover {
  background: var(--text);
  color: var(--white);
}

/* ===== Section Base ===== */
.section {
  padding: 80px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 14px;
  font-weight: 700;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* ===== Categories ===== */
.categories-section { background: var(--bg); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  background: transparent;
  padding: 28px 16px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.category-card:hover {
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.category-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 600;
}

.category-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ===== Products ===== */
.products-section { background: var(--white); }

.products-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--text);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img { transform: scale(1.03); }

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 3px;
}

.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.product-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 600;
}

.product-info h3 a { color: var(--text); }
.product-info h3 a:hover { color: var(--accent); }

.product-short-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.product-price .contact-for-price {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background: var(--text);
  color: var(--white);
}

/* ===== Features ===== */
.features-section {
  background: var(--bg);
  color: var(--text);
}
.features-section .section-label { color: var(--accent); }
.features-section .section-desc { color: var(--text-muted); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-item {
  text-align: left;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
}

.feature-item h3 {
  color: var(--text);
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--white);
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.cta-content { max-width: 680px; margin: 0 auto; }
.cta-content h2 {
  color: var(--text);
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px;
}
.cta-content p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg);
  color: var(--text);
  padding: 60px 24px 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .footer-logo {
  height: 32px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }

/* ===== WooCommerce Overrides ===== */
.woocommerce-breadcrumb,
.storefront-breadcrumb { display: none; }

.woocommerce-products-header {
  background: var(--bg);
  color: var(--text);
  padding: 100px 24px 60px;
  text-align: center;
  margin-bottom: 0;
}

.woocommerce-products-header h1 {
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
}

.woocommerce-products-header .term-description {
  color: var(--text-muted);
  max-width: 680px;
  margin: 16px auto 0;
  font-size: 16px;
}

.archive-shop-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Product Loop */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}

.woocommerce ul.products::before { display: none !important; }

.woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  padding: 0 20px;
  font-weight: 600;
}

.woocommerce ul.products li.product .price {
  padding: 0 20px 20px;
  color: var(--text);
  font-weight: 600;
}

.woocommerce ul.products li.product .button {
  margin: 0 20px 20px;
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--text);
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  padding: 10px 20px;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--text);
  color: var(--white);
}

.woocommerce ul.products li.product img {
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 !important;
}

/* Single Product */
.single-product .product {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.single-product .product .product_title {
  font-size: 34px;
  color: var(--text);
}

.single-product .product .woocommerce-product-details__short-description {
  font-size: 15px;
  color: var(--text-muted);
}

.woocommerce div.product form.cart .button {
  background: var(--text);
  color: var(--white);
  font-weight: 600;
  border-radius: 4px;
  padding: 14px 36px;
  transition: var(--transition);
}

.woocommerce div.product form.cart .button:hover {
  background: var(--accent);
}

.woocommerce span.onsale {
  background: var(--accent);
  color: var(--white);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
}

/* ===== Cart / Checkout ===== */
.woocommerce-cart,
.woocommerce-checkout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}

.woocommerce-cart table.cart td.actions .button,
.woocommerce-checkout #place_order {
  background: var(--text) !important;
  color: var(--white) !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
}

.woocommerce-cart table.cart td.actions .button:hover,
.woocommerce-checkout #place_order:hover {
  background: var(--accent) !important;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid,
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .site-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero { padding: 80px 20px 60px; min-height: auto; }
  .section { padding: 56px 20px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .products-grid,
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .single-product .product .product_title { font-size: 28px; }
}

@media (max-width: 480px) {
  .categories-grid,
  .products-grid,
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .lang-switcher { display: none; }
  .hero h1 { font-size: clamp(26px, 8vw, 36px); }
}

/* ===== Utility ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* Notifications */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius);
  border-left: 3px solid var(--text);
}

.woocommerce-message { background: var(--bg); }
