/**
 * Premio Main Styles — matches Flashmall / Masarrat Misbah reference UI
 */

:root {
  --premio-primary: #000000;
  --premio-accent: #e8b4c8;
  --premio-accent-dark: #d4a5b5;
  --premio-sale: #c41e3a;
  --premio-footer-bg: #000000;
  --premio-bg: #ffffff;
  --premio-text: #111111;
  --premio-muted: #666666;
  --premio-border: #e8e8e8;
  --premio-gold: #c9a227;
  --premio-lavender: #9b8fb8;
  --premio-font-serif: "Cormorant Garamond", Georgia, serif;
  --premio-font-sans: "Montserrat", system-ui, sans-serif;
  --premio-container: 1320px;
  --premio-radius: 4px;
  --premio-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --premio-transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--premio-font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--premio-text);
  background: var(--premio-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--premio-transition), opacity var(--premio-transition);
}

a:hover {
  opacity: 0.75;
}

.premio-container {
  width: min(100% - 40px, var(--premio-container));
  margin-inline: auto;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Top bar */
.premio-top-bar {
  background: var(--premio-primary);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 0;
}

.premio-top-bar__text {
  margin: 0;
}

/* Header */
.premio-header {
  background: #fff;
  border-bottom: 1px solid var(--premio-border);
  z-index: 100;
}

.premio-header--sticky {
  position: sticky;
  top: 0;
}

.premio-header--transparent {
  background: transparent;
  border-bottom-color: transparent;
  position: absolute;
  width: 100%;
}

.premio-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.premio-site-title,
.custom-logo-link {
  font-family: var(--premio-font-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.premio-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.premio-menu a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.premio-menu .current-menu-item > a,
.premio-menu a:hover {
  color: var(--premio-accent-dark);
  opacity: 1;
}

.premio-header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.premio-header-icons button,
.premio-header-icons a {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  position: relative;
}

.premio-cart-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--premio-primary);
  color: #fff;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.premio-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}

.premio-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--premio-primary);
}

/* Icons (CSS shapes) */
[class^="premio-icon-"] {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.premio-icon-search { border-radius: 50%; position: relative; }
.premio-icon-bag { border-radius: 3px; }
.premio-icon-heart { border-radius: 50% 50% 0 0; border-bottom: 0; }

/* Hero */
.premio-hero {
  position: relative;
  padding: 48px 0 64px;
  overflow: hidden;
}

.premio-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fce8ef 0%, #f5d4e0 50%, #fff 100%);
  z-index: 0;
}

.premio-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 32px;
}

.premio-hero__title {
  font-family: var(--premio-font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.1;
}

.premio-hero__products-placeholder {
  min-height: 320px;
  background: url("../images/hero-products-placeholder.svg") center/contain no-repeat;
  opacity: 0.9;
}

/* Buttons */
.premio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--premio-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0;
  border-radius: var(--premio-radius);
  cursor: pointer;
  transition: transform var(--premio-transition), background var(--premio-transition);
}

.premio-btn:hover {
  transform: translateY(-2px);
  opacity: 1;
  background: #333;
}

.premio-btn--accent {
  background: var(--premio-accent-dark);
}

/* Section titles */
.premio-section {
  padding: 56px 0;
}

.premio-section-title {
  text-align: center;
  font-family: var(--premio-font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 40px;
}

.premio-section-title span {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--premio-border);
}

/* Product grid */
.premio-products-grid,
.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.premio-product-row--cols-6 .products { grid-template-columns: repeat(6, 1fr); }
.premio-product-row--cols-4 .products,
.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
.products.columns-3 { grid-template-columns: repeat(3, 1fr); }

.premio-product-card__inner {
  text-align: center;
  transition: box-shadow var(--premio-transition);
}

.premio-product-card__inner:hover {
  box-shadow: var(--premio-shadow);
}

.premio-product-card__thumb {
  position: relative;
  background: #fafafa;
  padding: 16px;
  margin-bottom: 12px;
}

.premio-product-card__thumb img {
  margin: 0 auto;
  object-fit: contain;
  max-height: 220px;
}

.premio-product-card .woocommerce-loop-product__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.premio-product-card .price {
  font-weight: 700;
  font-size: 14px;
}

.premio-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  text-transform: uppercase;
}

.premio-badge--sale {
  background: var(--premio-sale);
  color: #fff;
}

.premio-badge--oos {
  background: #999;
  color: #fff;
}

.premio-badge--bestseller {
  background: var(--premio-gold);
  color: #fff;
  transform: rotate(0deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.premio-product-card__actions {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--premio-transition);
}

.premio-product-card:hover .premio-product-card__actions {
  opacity: 1;
}

/* Promo banner */
.premio-promo-banner {
  padding: 0 0 56px;
}

.premio-promo-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
  background: linear-gradient(90deg, var(--premio-lavender) 45%, #f0eef5 45%);
  border-radius: var(--premio-radius);
  overflow: hidden;
}

.premio-promo-banner__content {
  padding: 48px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.premio-promo-banner__content h2 {
  font-family: var(--premio-font-serif);
  font-size: 2rem;
  margin: 0 0 20px;
}

.premio-promo-banner__visual {
  background: #ddd center/cover;
}

/* Category grid */
.premio-cat-grid__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 480px;
}

.premio-cat-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--premio-radius);
  background: #ccc center/cover;
  min-height: 200px;
}

.premio-cat-grid__item--face {
  grid-row: 1 / 3;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.4)), #d4c4b8;
}

.premio-cat-grid__item--lips { background: #e8a0a8; }
.premio-cat-grid__item--eyes { background: #b8a898; }

.premio-cat-grid__label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  font-family: var(--premio-font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

/* Blog */
.premio-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.premio-blog-card h3 {
  font-family: var(--premio-font-serif);
  font-size: 1.25rem;
  margin: 16px 0 8px;
}

.premio-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

/* SEO & Newsletter */
.premio-seo-content {
  padding: 48px 0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.premio-seo-content h2,
.premio-seo-content h3 {
  font-family: var(--premio-font-serif);
}

.premio-newsletter {
  background: var(--premio-primary);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.premio-newsletter-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.premio-newsletter-form input {
  min-width: 280px;
  padding: 12px 16px;
  border: 0;
}

/* Footer */
.premio-footer__contact {
  border-bottom: 1px solid var(--premio-border);
  padding: 24px 0;
}

.premio-footer__contact-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.premio-footer__main {
  background: var(--premio-footer-bg);
  color: #fff;
  padding: 48px 0;
}

.premio-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}

.premio-footer__col h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.premio-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.premio-footer-menu a {
  color: #aaa;
  font-size: 13px;
  line-height: 2;
}

.premio-footer__bottom {
  background: #111;
  color: #888;
  padding: 16px 0;
  font-size: 12px;
}

.premio-footer__bottom .premio-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* WhatsApp */
.premio-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 999;
  box-shadow: var(--premio-shadow);
}

/* Cart drawer */
.premio-cart-drawer__panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: #fff;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform var(--premio-transition);
  padding: 24px;
  overflow-y: auto;
}

.premio-cart-drawer.is-open .premio-cart-drawer__panel {
  transform: translateX(0);
}

.premio-cart-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--premio-transition);
}

.premio-cart-drawer.is-open .premio-cart-drawer__overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile */
.premio-mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--premio-border);
  z-index: 99;
  justify-content: space-around;
  padding: 10px 0;
}

@media (max-width: 1200px) {
  .premio-product-row--cols-6 .products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .premio-nav { display: none; }
  .premio-mobile-toggle { display: flex; }
  .premio-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .premio-product-row--cols-6 .products,
  .premio-product-row--cols-4 .products,
  .products.columns-4 { grid-template-columns: repeat(2, 1fr); }
  .premio-cat-grid__layout { grid-template-columns: 1fr; }
  .premio-cat-grid__item--face { grid-row: auto; }
  .premio-blog-grid { grid-template-columns: 1fr; }
  .premio-footer__grid { grid-template-columns: 1fr 1fr; }
  .premio-promo-banner__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .premio-mobile-bottom-bar { display: flex; }
  body { padding-bottom: 56px; }
  .products.columns-3 { grid-template-columns: repeat(2, 1fr); }
}

/* RTL */
[dir="rtl"] .premio-cart-drawer__panel {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}
