/*
Theme Name: Amir Online
Theme URI: https://amironline.co.za
Author: AMIR1
Author URI: https://amir1.co.za
Description: Official black-gold storefront theme for AMIR ONLINE, built by AMIR1.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amir-online
Requires PHP: 7.4
*/

:root {
  --gold: #C9A227;
  --ink: #0A0A0A;
  --white: #FFFFFF;
  --gray-light: #F4F4F2;
  --gray-mid: #B8B8B8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, .site-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--ink);
  font-weight: 700;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold); }

/* ===== Header ===== */
.site-header {
  background: var(--ink);
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-logo {
  height: 48px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .site-logo { height: 38px; }
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-navigation a:hover { color: var(--gold); }

/* Dropdown for categories under Shop */
.main-navigation li.menu-item-has-children {
  position: relative;
}

.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--ink);
  border: 1px solid var(--gold);
  min-width: 240px;
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 0;
  z-index: 100;
  flex-direction: column;
  gap: 0;
}

.main-navigation li.menu-item-has-children:hover .sub-menu {
  display: flex;
}

.main-navigation .sub-menu li {
  width: 100%;
}

.main-navigation .sub-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.main-navigation .sub-menu a:hover {
  background: rgba(201,162,39,0.1);
}

.header-cart a {
  color: var(--gold);
  font-weight: 600;
  border: 1px solid var(--gold);
  padding: 8px 16px;
  border-radius: 2px;
}

/* ===== Content area ===== */
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5%;
}

/* ===== WooCommerce overrides ===== */
.woocommerce ul.products li.product {
  border: 1px solid var(--gray-light);
  padding: 16px;
  transition: box-shadow 0.2s ease;
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.woocommerce ul.products li.product .price {
  color: var(--gold);
  font-weight: 700;
}

.woocommerce span.onsale,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce input.button {
  background: var(--ink) !important;
  color: var(--gold) !important;
  border-radius: 2px !important;
  border: 1px solid var(--gold) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce input.button:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--gold);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--gray-mid);
  text-align: center;
  padding: 30px 5%;
  font-size: 13px;
  margin-top: 60px;
}

.site-footer .gold { color: var(--gold); }

.footer-categories {
  max-width: 1200px;
  margin: 0 auto 24px;
  text-align: left;
}

.footer-categories h4 {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(201,162,39,0.3);
  padding-bottom: 10px;
}

.footer-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 24px;
}

.footer-cat-list a {
  color: var(--gray-mid);
  font-size: 13px;
}

.footer-cat-list a:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .footer-cat-list { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-header { flex-direction: column; gap: 14px; }
  .main-navigation ul { flex-wrap: wrap; justify-content: center; gap: 16px; }
}
