/*
Theme Name: Opsyn
Theme URI: https://opsyn.store
Author: Opsyn
Description: Custom WooCommerce theme matching opsyn.shop
Version: 1.0
Requires at least: 5.6
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: opsyn
Tags: woocommerce, ecommerce, fashion, minimal
*/

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-left { display: flex; align-items: center; gap: 28px; flex: 1; }
.site-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #1a1a1a;
  flex-shrink: 0;
}
.header-nav { display: flex; gap: 24px; }
.header-nav a {
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  transition: opacity 0.2s;
}
.header-nav a:hover { opacity: 0.55; }
.header-right { display: flex; align-items: center; gap: 20px; }
.header-right a {
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  transition: opacity 0.2s;
}
.header-right a:hover { opacity: 0.55; }
.header-search-btn {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  color: #1a1a1a;
  transition: opacity 0.2s;
}
.header-search-btn:hover { opacity: 0.55; }
.cart-link { display: flex; align-items: center; gap: 4px; }
.cart-count-badge {
  background: #1a1a1a;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.trust-bar-text {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}
.trust-bar-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.trust-bar-rating .quote { font-style: italic; color: #1a1a1a; font-weight: 500; }
.trust-bar-rating .stars { color: #00b67a; font-size: 12px; }
.trust-bar-rating .platform { font-weight: 600; color: #1a1a1a; }
.trust-divider { color: #ccc; margin: 0 4px; }

/* ── MARQUEE BEST SELLERS ── */
.marquee-section {
  border-bottom: 1px solid #e5e5e5;
  overflow: hidden;
  padding: 0;
  background: #fff;
}
.marquee-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #1a1a1a;
  color: #fff;
  padding: 10px 20px;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.marquee-wrapper {
  display: flex;
  align-items: center;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}
.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 28px;
  border-right: 1px solid #e5e5e5;
  font-size: 13px;
  color: #1a1a1a;
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none;
}
.marquee-item:hover { background: #f5f5f5; }
.marquee-item-price { color: #666; font-size: 12px; }

/* ── PROMO BANNER ── */
.promo-banner {
  background: #f5f5f5;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e5e5e5;
}
.promo-banner strong { letter-spacing: 0.08em; }

/* ── SECTION LAYOUT ── */
.store-section {
  padding: 40px 0 48px;
  border-bottom: 1px solid #e5e5e5;
}
.store-section:last-of-type { border-bottom: none; }

.section-head {
  max-width: 1280px;
  margin: 0 auto 20px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1a;
}
.section-view-all {
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.section-view-all:hover { opacity: 0.55; }

/* ── PRODUCT GRID ── */
.products-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.products-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.products-row.cols-5 { grid-template-columns: repeat(5, 1fr); }

.product-card {
  position: relative;
  background: #fff;
}
.product-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
  margin-bottom: 8px;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }

.product-badge-sale {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  z-index: 1;
}

.product-card-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  gap: 4px;
  padding: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s ease;
}
.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateY(0);
}
.btn-add, .btn-choose {
  flex: 1;
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 9px 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s;
  text-align: center;
  display: block;
  text-decoration: none;
}
.btn-add:hover, .btn-choose:hover { opacity: 0.75; }
.btn-choose { background: #fff; color: #1a1a1a; border: 1px solid #1a1a1a; }

.product-card-info { padding: 0 2px; }
.product-card-name {
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card-price { font-size: 13px; color: #1a1a1a; }
.product-card-price .price-sale { color: #1a1a1a; }
.product-card-price .price-compare { color: #999; text-decoration: line-through; font-size: 12px; margin-left: 5px; }

/* ── BRAND LINKS ── */
.brand-links {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-link {
  background: #f5f5f5;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.brand-link:hover { background: #1a1a1a; color: #fff; }

/* ── SHOP THE LOOK ── */
.stl-section {
  background: #f9f9f9;
  padding: 48px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}
.stl-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.stl-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.stl-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.stl-main-img {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #f0f0f0;
}
.stl-main-img img { width: 100%; height: 100%; object-fit: cover; }
.stl-product {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.stl-product:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.stl-product-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}
.stl-product-img img { width: 100%; height: 100%; object-fit: cover; }
.stl-product-info { padding: 12px 14px 14px; }
.stl-product-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.stl-product-price { font-size: 13px; color: #666; margin-bottom: 12px; }
.stl-product-btns { display: flex; gap: 6px; }

/* ── REVIEWS ── */
.reviews-section {
  padding: 48px 0;
  background: #fff;
}
.reviews-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.reviews-header {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.review-card {
  border: 1px solid #e5e5e5;
  padding: 20px;
  background: #fff;
}
.review-stars { font-size: 12px; color: #1a1a1a; letter-spacing: 2px; margin-bottom: 10px; }
.review-text { font-size: 13px; line-height: 1.6; color: #1a1a1a; margin-bottom: 14px; }
.review-author { font-size: 12px; font-weight: 600; color: #1a1a1a; }
.review-badge { font-size: 11px; color: #888; margin-top: 2px; }
.review-loc { font-size: 11px; color: #888; }

/* ── FAQ ── */
.faq-section {
  padding: 48px 0;
  border-top: 1px solid #e5e5e5;
  background: #fff;
}
.faq-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  align-items: start;
}
.faq-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  grid-column: 1 / -1;
}
.faq-item { border-bottom: 1px solid #e5e5e5; }
.faq-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s;
}
.faq-btn:hover { opacity: 0.6; }
.faq-icon { font-size: 18px; font-weight: 300; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 160px; padding-bottom: 16px; }

/* ── CONTACT ── */
.contact-section {
  padding: 48px 0;
  border-top: 1px solid #e5e5e5;
  background: #f9f9f9;
}
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}
.contact-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  background: #fff;
  padding: 12px 14px;
  font-size: 13px;
  font-family: inherit;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #1a1a1a; }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 13px 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: flex-start;
  transition: opacity 0.2s;
}
.contact-form button:hover { opacity: 0.75; }

/* ── FOOTER ── */
.site-footer {
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: lowercase; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: #666; transition: color 0.2s; }
.footer-links a:hover { color: #1a1a1a; }
.footer-newsletter { display: flex; gap: 0; }
.footer-newsletter input {
  border: 1px solid #ddd;
  border-right: none;
  padding: 9px 14px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  width: 200px;
}
.footer-newsletter button {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.footer-newsletter button:hover { opacity: 0.75; }
.footer-copy { font-size: 11px; color: #999; width: 100%; text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e5e5; }

/* ── WOOCOMMERCE ── */
.woocommerce-notices-wrapper { max-width: 1280px; margin: 0 auto; padding: 12px 24px; }

/* Shop page */
.woocommerce-page .woocommerce,
.woocommerce { max-width: 1280px; margin: 0 auto; padding: 40px 24px; }

.woocommerce .woocommerce-ordering select,
.woocommerce .woocommerce-result-count { font-family: inherit; font-size: 13px; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 12px !important; margin: 0 !important; }
.woocommerce ul.products li.product { margin: 0 !important; padding: 0 !important; }

.woocommerce ul.products li.product a.woocommerce-loop-product__link { display: block; }
.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  margin-bottom: 0 !important;
  transition: transform 0.5s ease;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  padding: 10px 2px 4px !important;
  color: #1a1a1a !important;
}
.woocommerce ul.products li.product .price {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #1a1a1a !important;
  padding: 0 2px 10px !important;
}
.woocommerce ul.products li.product .button {
  background: #1a1a1a !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  padding: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  transition: opacity 0.2s !important;
}
.woocommerce ul.products li.product .button:hover { opacity: 0.75 !important; }

/* Single product */
.woocommerce div.product { padding: 40px 24px; max-width: 1280px; margin: 0 auto; }
.woocommerce div.product .product_title {
  font-family: 'Inter', sans-serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}
.woocommerce div.product p.price { font-size: 18px !important; color: #1a1a1a !important; margin-bottom: 16px !important; }
.woocommerce div.product .single_add_to_cart_button {
  background: #1a1a1a !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 15px 36px !important;
  height: auto !important;
  transition: opacity 0.2s !important;
}
.woocommerce div.product .single_add_to_cart_button:hover { opacity: 0.75 !important; }

/* Cart/Checkout */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce { padding: 40px 24px; max-width: 1280px; margin: 0 auto; }
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
  background: #1a1a1a !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}
.woocommerce table.shop_table { font-family: 'Inter', sans-serif; font-size: 13px; }
.woocommerce-checkout #checkout_coupon_field input,
.woocommerce-checkout .input-text,
.woocommerce-checkout select {
  border-radius: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
}

/* Remove WC default sidebar */
.woocommerce-sidebar { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .products-row { grid-template-columns: repeat(4, 1fr); }
  .products-row.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-inner { padding: 0 16px; }
  .products-row, .products-row.cols-4, .products-row.cols-5, .products-row.cols-6 { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 16px; }
  .stl-grid { grid-template-columns: 1fr; }
  .faq-inner { grid-template-columns: 1fr; gap: 0; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-newsletter input { width: 160px; }
}
