/*
Theme Name: Skate
Description: Australian Wool Storefront
Version: 2.1
*/

:root { --color-primary: #2d1b0e; --color-surface: #f5f0eb; --color-muted: #8b7e74; --color-border: #e5ddd5; }

*, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", sans-serif; color: var(--color-primary); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-surface { background: var(--color-surface); }
.section-title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.section-subtitle { font-size: 13px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 2px; }

.announce { background: var(--color-primary); color: #fff; text-align: center; padding: 8px; font-size: 13px; letter-spacing: 0.5px; }
.site-header { border-bottom: 1px solid var(--color-border); background: #fff; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.brand { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; display: flex; align-items: center; gap: 2px; }
.brand sup { font-size: 12px; font-weight: 400; }
.nav-main { display: flex; gap: 28px; }
.nav-main a { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.nav-main a:hover { border-bottom-color: var(--color-primary); }
.nav-actions { display: flex; gap: 20px; align-items: center; }
.nav-actions a { font-size: 13px; font-weight: 500; }

.hero { position: relative; height: 80vh; min-height: 500px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 60%, transparent 100%); }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 60px 40px 80px; z-index: 3; max-width: 600px; }
.hero-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 3px; color: rgba(255,255,255,0.9); margin-bottom: 12px; }
.hero-headline { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.1; color: #fff; margin-bottom: 24px; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.3s; }
.hero-dot.active { background: #fff; }

.btn-primary { display: inline-block; background: #fff; color: var(--color-primary); padding: 14px 36px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border: none; cursor: pointer; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { display: inline-block; border: 1px solid var(--color-primary); color: var(--color-primary); padding: 12px 28px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; background: transparent; cursor: pointer; transition: all 0.2s; }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.cat-card { position: relative; aspect-ratio: 3/4; overflow: hidden; display: block; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; }
.cat-overlay h3 { font-size: 22px; font-weight: 700; text-transform: uppercase; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { position: relative; }
.product-card a { display: block; }
.product-card-image { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 12px; background: var(--color-surface); }
.product-card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s; padding: 20px; }
.product-card:hover .product-card-image img { transform: scale(1.03); }
.product-card-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.product-card-price { font-size: 14px; font-weight: 600; }
.product-card-colors { display: flex; gap: 6px; margin-top: 8px; }
.color-dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col-image { aspect-ratio: 4/5; overflow: hidden; }
.two-col-image img { width: 100%; height: 100%; object-fit: cover; }
.two-col-text h2 { margin-bottom: 16px; }
.two-col-text p { color: var(--color-muted); font-size: 16px; line-height: 1.7; margin-bottom: 24px; }

.brand-story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.brand-story-image { aspect-ratio: 3/4; overflow: hidden; }
.brand-story-image img { width: 100%; height: 100%; object-fit: cover; }
.brand-story-quote { font-size: clamp(18px, 2.5vw, 24px); line-height: 1.5; margin-bottom: 12px; font-style: italic; }
.brand-story-author { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--color-muted); }

.site-footer { background: var(--color-primary); color: #fff; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 320px; line-height: 1.6; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); font-size: 13px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px; }
.footer-payments { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-icon { display: inline-flex; align-items: center; margin: 0 3px; }
.payment-icon svg { width: 38px; height: 26px; border-radius: 3px; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; gap: 24px !important; }
.woocommerce ul.products:before { display: none !important; }
.woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product .price { color: var(--color-muted); font-size: 14px; font-weight: 600; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; font-weight: 600; padding: 0; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.woocommerce div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .summary { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .product_title { font-size: 28px; font-weight: 800; line-height: 1.2; }
.woocommerce div.product .price { font-size: 24px; font-weight: 700; }
.woocommerce div.product .quantity { float: left; margin-right: 12px; }
.woocommerce div.product .quantity .qty { width: 70px; padding: 14px 12px; border: 2px solid var(--color-border); font-size: 16px; text-align: center; }
.woocommerce div.product .single_add_to_cart_button { background: var(--color-primary) !important; color: #fff !important; border: none !important; padding: 14px 40px !important; font-size: 15px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 1px !important; border-radius: 0 !important; }
.woocommerce div.product form.cart { margin-bottom: 16px; display: flex; align-items: center; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1/-1; margin-top: 40px; }
.woocommerce div.product .related { grid-column: 1/-1; margin-top: 40px; }
.woocommerce div.product .product_meta { font-size: 13px; color: var(--color-muted); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.woocommerce-page .site-header { background: #fff; }
.product-colors { display: flex; gap: 6px; margin-bottom: 16px; }
.product-colors span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--color-border); }
.product-material { font-size: 13px; color: var(--color-muted); margin-bottom: 12px; }
.product-material strong { color: var(--color-primary); }
.woocommerce a.button, .woocommerce button.button { background: var(--color-primary) !important; color: #fff !important; border: none !important; padding: 14px 32px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; border-radius: 0 !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover { opacity: 0.85; }

/* ========= MOBILE ========= */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 22px !important; }
  .announce { font-size: 11px; padding: 6px; }
  
  .hero { height: 65vh; min-height: 380px; }
  .hero-content { padding: 30px 20px 50px; }
  .hero-headline { font-size: 28px !important; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 2px; }
  
  .header-inner { padding: 12px 0; }
  .brand { font-size: 22px; }
  .nav-main { display: none; }
  .nav-actions { gap: 12px; }
  .nav-actions a { font-size: 12px; }
  
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .product-card-title { font-size: 12px; }
  .product-card-price { font-size: 12px; }
  .product-card-image { aspect-ratio: 1/1; }
  .product-card-image img { padding: 12px; }
  
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .cat-card { aspect-ratio: 1/1; }
  .cat-overlay { padding: 16px; }
  .cat-overlay h3 { font-size: 16px; }
  
  .two-col, .brand-story { grid-template-columns: 1fr !important; gap: 24px !important; }
  .two-col-image, .brand-story-image { aspect-ratio: 16/9; }
  
  .woocommerce div.product { grid-template-columns: 1fr !important; gap: 24px; }
  .woocommerce div.product .product_title { font-size: 22px; }
  .woocommerce div.product .single_add_to_cart_button { width: 100% !important; padding: 16px !important; }
  .woocommerce div.product .quantity { float: none !important; display: block; margin-bottom: 12px; }
  .woocommerce div.product .quantity .qty { width: 100%; }
  .woocommerce div.product form.cart { flex-direction: column; align-items: stretch; }
  .woocommerce-product-gallery__image img { max-width: 100% !important; height: auto !important; }
  .zoomImg { display: none !important; }
  .woocommerce .woocommerce-ordering { float: none; width: 100%; }
  
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 12px; }
  
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .site-footer { padding: 48px 0 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
  .footer-payments { justify-content: center; }
  .payment-icon svg { width: 32px !important; height: 22px !important; }
  
  div[style*="grid-template-columns:repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; }
  div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ========= SMALL PHONES ========= */
@media (max-width: 400px) {
  .hero { height: 55vh; min-height: 320px; }
  .hero-headline { font-size: 24px !important; }
  .product-grid { gap: 8px; }
  .cat-grid { gap: 6px; }
  .cat-card { aspect-ratio: 5/6; }
}
