/*
Theme Name: Jyoti Garments
Theme URI: https://jyotigarments.com
Author: Jyoti Garments
Description: WordPress/WooCommerce starter theme rebuilt from the Jyoti Garments Shopify (Dawn) theme. Same colors, fonts and layout language, running on WooCommerce instead of Shopify.
Version: 1.1
Requires PHP: 7.4
Text Domain: jyoti-garments
*/

:root{
  --color-primary: #612530;      /* wine - from Shopify scheme-1 */
  --color-primary-text: #ffffff;
  --color-surface: #f4f4f4;      /* scheme-2 */
  --color-surface-alt: #f0e9e4;  /* scheme-3 */
  --color-accent: #f1daef;       /* scheme-5 */
  --color-text: #121212;
  --color-button: #000000;
  --color-border: #e3e3e3;
  --font-body: 'Archivo', Arial, sans-serif;
  --font-heading: 'Archivo', Arial, sans-serif;
  --container-width: 1200px;
  --radius: 4px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.5;
  font-size: 16px;
}
img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: var(--font-heading); font-weight:600; line-height:1.2; margin:0 0 .5em; }

.page-width{
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn, button.button, input[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit{
  display:inline-block;
  background: var(--color-button);
  color:#fff;
  border:none;
  border-radius: var(--radius);
  padding: 13px 28px;
  font-size: 14px;
  letter-spacing:.03em;
  text-transform:uppercase;
  cursor:pointer;
  transition: opacity .15s ease;
}
.btn:hover, button.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover{ opacity:.85; color:#fff; }
.btn--outline{ background:transparent; color:var(--color-text); border:1px solid var(--color-text); }

/* Utility bar / announcement */
.utility-bar{
  background: var(--color-primary);
  color: var(--color-primary-text);
  text-align:center;
  font-size:13px;
  padding:8px 16px;
  letter-spacing:.02em;
}

/* Header */
.site-header{
  border-bottom:1px solid var(--color-border);
  background:#fff;
  position:sticky;
  top:0;
  z-index:50;
}
.site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  gap:24px;
}
.site-header__logo{ font-size:22px; font-weight:700; letter-spacing:.02em; }
.site-header__logo img{ max-height:48px; width:auto; }
.site-nav{ display:flex; gap:28px; }
.site-nav a{ font-size:14px; text-transform:uppercase; letter-spacing:.03em; }
.site-header__icons{ display:flex; align-items:center; gap:18px; }
.site-header__icons a{ display:flex; align-items:center; position:relative; }
.site-header__icons svg{ width:20px; height:20px; }
.cart-count{
  position:absolute; top:-8px; right:-10px;
  background:var(--color-primary); color:#fff;
  font-size:10px; width:16px; height:16px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.mobile-nav-toggle{ display:none; background:none; border:none; font-size:24px; cursor:pointer; }

@media (max-width: 900px){
  .site-nav{ display:none; }
  .mobile-nav-toggle{ display:block; }
  .site-nav.is-open{
    display:flex; flex-direction:column; position:absolute; top:100%; left:0; right:0;
    background:#fff; padding:16px 24px; border-bottom:1px solid var(--color-border); gap:14px;
  }
}

/* Hero slider */
.hero-slider{ position:relative; overflow:hidden; width:100%; }
.hero-slider__track{ display:flex; transition: transform .6s ease; will-change: transform; }
.hero-slider__slide{ min-width:100%; flex-shrink:0; display:block; line-height:0; }
.hero-slider__slide picture{
  display:block;
  width:100%;
}
/* Keep the complete supplied banner artwork visible — never crop it to fill a fixed-height frame. */
.hero-slider__slide img{ width:100%; height:auto !important; display:block; object-fit:contain !important; }
.hero-slider__arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,.85); border:none; border-radius:50%;
  width:40px; height:40px; font-size:16px; cursor:pointer; z-index:2;
  display:flex; align-items:center; justify-content:center;
}
.hero-slider__arrow:focus-visible, .hero-slider__dot:focus-visible{ outline:2px solid #fff; outline-offset:3px; }
.hero-slider__arrow--prev{ left:16px; }
.hero-slider__arrow--next{ right:16px; }
.hero-slider__dots{
  position:absolute; bottom:16px; left:50%; transform:translateX(-50%);
  display:flex; gap:8px; z-index:2;
}
.hero-slider__dot{
  width:9px; height:9px; border-radius:50%; border:none; background:rgba(255,255,255,.55); cursor:pointer; padding:0;
}
.hero-slider__dot.is-active{ background:#ffffff; }
@media (max-width:749px){
  .hero-slider__arrow{ width:32px; height:32px; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero-slider__track{ transition:none; }
}

/* Hero */
.hero{
  position:relative;
  background: var(--color-surface-alt) center/cover no-repeat;
  min-height: 460px;
  display:flex;
  align-items:center;
}
.hero__content{ max-width:480px; padding: 40px 0; }
.hero__content h1{ font-size:42px; margin-bottom:16px; }
.hero__content p{ font-size:16px; margin-bottom:24px; }

/* Sections */
.section{ padding: 64px 0; }
.section--surface{ background: var(--color-surface); }
.section__header{ text-align:center; margin-bottom:36px; }
.section__header h2{ font-size:28px; }

/* Product grid (WooCommerce) */
ul.products{ display:grid !important; grid-template-columns:repeat(4,1fr); gap:28px; }
@media (max-width:900px){ ul.products{ grid-template-columns:repeat(2,1fr); } }
ul.products li.product{ text-align:left; }
ul.products li.product img{ border-radius: var(--radius); margin-bottom:10px; }
ul.products li.product .woocommerce-loop-product__title{ font-size:15px; font-weight:500; margin:6px 0 4px; }
ul.products li.product .price{ font-size:14px; color:var(--color-primary); font-weight:600; }
ul.products li.product .price ins{ text-decoration:none; }
ul.products li.product .price del{ opacity:.5; margin-right:6px; }
.star-rating{ display:none; }

/* Single product */
.woocommerce div.product div.images, .woocommerce div.product div.summary{ float:none; width:auto; }
.woocommerce div.product{ display:grid; grid-template-columns:1.1fr 1fr; gap:48px; }
@media (max-width:800px){ .woocommerce div.product{ grid-template-columns:1fr; } }
.woocommerce div.product p.price{ font-size:22px; color:var(--color-primary); margin:12px 0; }

/* Multicolumn feature block */
.feature-columns{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; text-align:center; }
@media (max-width:800px){ .feature-columns{ grid-template-columns:1fr; } }
.feature-columns__item h4{ font-size:16px; margin:10px 0 6px; }
.feature-columns__item p{ font-size:14px; color:#555; margin:0; }

/* Image with text */
.image-with-text{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
@media (max-width:800px){ .image-with-text{ grid-template-columns:1fr; } }

/* Newsletter */
.newsletter{ background: var(--color-accent); text-align:center; padding:56px 24px; }
.newsletter form{ display:flex; justify-content:center; gap:10px; margin-top:20px; flex-wrap:wrap; }
.newsletter input[type="email"]{ padding:12px 16px; border:1px solid var(--color-border); border-radius:var(--radius); min-width:280px; }

/* Footer */
.site-footer{ background: var(--color-primary); color:#fff; padding:56px 0 24px; }
.footer-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:32px; margin-bottom:32px; }
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-grid h4{ font-size:14px; text-transform:uppercase; letter-spacing:.05em; margin-bottom:12px; }
.footer-grid a{ font-size:14px; opacity:.85; display:block; margin-bottom:8px; }
.site-footer__bottom{ border-top:1px solid rgba(255,255,255,.2); padding-top:20px; font-size:13px; opacity:.75; text-align:center; }

/* Cart / checkout basic tidy-up */
.woocommerce table.shop_table{ border-collapse:collapse; width:100%; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td{ padding:12px; border:1px solid var(--color-border); }
