/*
Theme Name: Clean Watch Dubai
Theme URI: https://cleanwatchdubai.com/
Author: Clean Watch Dubai
Description: A fast, premium WooCommerce catalogue theme for COD orders completed through WhatsApp.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: clean-watch-dubai
Tags: e-commerce, custom-logo, custom-menu, featured-images, translation-ready
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --cwd-ink: #171613;
  --cwd-charcoal: #24231f;
  --cwd-deep: #0c0d0d;
  --cwd-gold: #b79052;
  --cwd-gold-dark: #8e6e3f;
  --cwd-ivory: #f7f2e9;
  --cwd-paper: #fffdf9;
  --cwd-line: #ded5c7;
  --cwd-muted: #6e6a63;
  --cwd-whatsapp: #167c45;
  --cwd-white: #fff;
  --cwd-radius: 22px;
  --cwd-shadow: 0 22px 60px rgba(24, 20, 13, .10);
  --cwd-container: min(1180px, calc(100% - 36px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cwd-ink);
  background: var(--cwd-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .cwd-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.cwd-container { width: var(--cwd-container); margin-inline: auto; }
.cwd-section { padding: 92px 0; }
.cwd-section--soft { background: var(--cwd-ivory); }
.cwd-section--dark { color: var(--cwd-white); background: var(--cwd-deep); }
.cwd-kicker {
  margin: 0 0 12px;
  color: var(--cwd-gold-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.cwd-section--dark .cwd-kicker { color: #d8b879; }
.cwd-title {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 4vw, 3.85rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.cwd-lead { max-width: 680px; margin: 20px 0 0; color: var(--cwd-muted); font-size: 1.05rem; }
.cwd-section--dark .cwd-lead { color: #c8c5bf; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  z-index: 9999; top: 8px; left: 8px; width: auto; height: auto;
  padding: 10px 16px; margin: 0; clip: auto; background: var(--cwd-white);
}

/* Announcement and navigation */
.cwd-announcement {
  padding: 9px 16px;
  color: #f7f2e9;
  background: var(--cwd-deep);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.cwd-header {
  position: sticky; z-index: 1000; top: 0;
  border-bottom: 1px solid rgba(142, 110, 63, .18);
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(16px);
}
.cwd-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 82px;
  gap: 28px;
}
.cwd-brand { display: inline-flex; align-items: center; gap: 12px; }
.cwd-brand__mark {
  display: grid; width: 38px; height: 38px; place-items: center;
  border: 1px solid var(--cwd-gold); border-radius: 50%;
  font-family: Georgia, serif; font-size: 1.15rem;
}
.cwd-brand__name { font-family: Georgia, serif; font-size: 1.08rem; letter-spacing: .02em; }
.cwd-brand__name small {
  display: block; color: var(--cwd-muted); font-family: inherit;
  font-size: .57rem; letter-spacing: .17em; text-transform: uppercase;
}
.custom-logo-link img { width: auto; max-height: 48px; }
.cwd-menu, .cwd-menu ul { list-style: none; margin: 0; padding: 0; }
.cwd-menu { display: flex; justify-content: center; gap: 30px; }
.cwd-menu a { font-size: .88rem; font-weight: 700; }
.cwd-menu a:hover, .cwd-menu .current-menu-item > a { color: var(--cwd-gold-dark); }
.cwd-nav__actions { display: flex; align-items: center; gap: 12px; }
.cwd-mobile-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--cwd-line); border-radius: 50%; background: transparent; cursor: pointer;
}
.cwd-mobile-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--cwd-ink); }

/* Buttons */
.cwd-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 20px;
  border: 1px solid transparent; border-radius: 999px;
  color: var(--cwd-white); background: var(--cwd-ink);
  font-size: .86rem; font-weight: 800; line-height: 1.2;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.cwd-button:hover { transform: translateY(-2px); background: var(--cwd-charcoal); }
.cwd-button--gold { color: var(--cwd-deep); background: #d4b173; }
.cwd-button--gold:hover { background: #e2c38c; }
.cwd-button--outline { color: var(--cwd-ink); border-color: var(--cwd-line); background: transparent; }
.cwd-button--outline:hover { border-color: var(--cwd-gold); background: var(--cwd-ivory); }
.cwd-button--whatsapp { background: var(--cwd-whatsapp); }
.cwd-button--whatsapp:hover { background: #0e6837; }
.cwd-icon { width: 18px; height: 18px; fill: currentColor; }

/* Hero */
.cwd-hero {
  position: relative;
  display: grid;
  min-height: 700px;
  align-items: center;
  overflow: hidden;
  color: var(--cwd-white);
  background: var(--cwd-deep);
}
.cwd-hero::before {
  position: absolute; inset: 0; content: "";
  background: linear-gradient(90deg, rgba(5, 6, 6, .96) 0%, rgba(5, 6, 6, .74) 39%, rgba(5, 6, 6, .12) 70%);
}
.cwd-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cwd-hero__content { position: relative; z-index: 1; max-width: 625px; padding: 90px 0; }
.cwd-hero__eyebrow { color: #d9bb83; }
.cwd-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6.8vw, 6.35rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .96;
}
.cwd-hero h1 em { color: #d7b779; font-weight: inherit; }
.cwd-hero__copy { max-width: 560px; margin: 28px 0 0; color: #d9d6cf; font-size: 1.04rem; }
.cwd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.cwd-hero__meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 44px; color: #c3c0ba; font-size: .78rem; }
.cwd-hero__meta span { display: flex; align-items: center; gap: 8px; }
.cwd-hero__meta b { color: #d7b779; }

/* Trust strip */
.cwd-trust { border-bottom: 1px solid var(--cwd-line); background: var(--cwd-paper); }
.cwd-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cwd-trust__item { display: flex; align-items: center; gap: 13px; padding: 25px 22px; border-right: 1px solid var(--cwd-line); }
.cwd-trust__item:last-child { border-right: 0; }
.cwd-trust__icon {
  display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center;
  border: 1px solid var(--cwd-line); border-radius: 50%; color: var(--cwd-gold-dark);
}
.cwd-trust__item strong { display: block; font-size: .86rem; }
.cwd-trust__item small { color: var(--cwd-muted); font-size: .73rem; }

/* Collections */
.cwd-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.cwd-category-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 20px; }
.cwd-category {
  position: relative; min-height: 400px; overflow: hidden;
  border-radius: var(--cwd-radius); background: var(--cwd-deep);
}
.cwd-category img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.cwd-category:hover img { transform: scale(1.035); }
.cwd-category::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(9, 9, 8, .88), rgba(9, 9, 8, .04) 72%); }
.cwd-category__content { position: absolute; z-index: 2; right: 24px; bottom: 24px; left: 24px; color: var(--cwd-white); }
.cwd-category__content small { color: #d7b779; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cwd-category__content h3 { margin: 7px 0 2px; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; }
.cwd-category__content span { color: #d4d0c9; font-size: .82rem; }

/* Product cards */
.cwd-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cwd-product {
  overflow: hidden;
  border: 1px solid var(--cwd-line);
  border-radius: var(--cwd-radius);
  background: var(--cwd-white);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cwd-product:hover { transform: translateY(-5px); box-shadow: var(--cwd-shadow); }
.cwd-product__image { position: relative; overflow: hidden; aspect-ratio: 1/1; background: #f1e9dc; }
.cwd-product__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.cwd-product:hover .cwd-product__image img { transform: scale(1.025); }
.cwd-product__badge {
  position: absolute; top: 14px; left: 14px;
  padding: 7px 10px; border-radius: 999px;
  color: var(--cwd-white); background: rgba(19, 18, 16, .88);
  font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.cwd-product__body { padding: 20px; }
.cwd-product__type { color: var(--cwd-gold-dark); font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cwd-product h3 { margin: 7px 0 4px; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 500; line-height: 1.25; }
.cwd-product__price { margin: 0 0 16px; font-size: .95rem; font-weight: 800; }
.cwd-product__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.cwd-product__actions .cwd-button { min-height: 44px; padding: 10px 14px; font-size: .76rem; }
.cwd-product__view { width: 44px; padding: 0 !important; }
.cwd-demo-note { margin-top: 18px; color: var(--cwd-muted); font-size: .78rem; text-align: center; }

/* Story and COD */
.cwd-story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.cwd-story__visual { position: relative; min-height: 520px; overflow: hidden; border-radius: 34px; background: var(--cwd-ivory); }
.cwd-story__visual img { width: 100%; height: 100%; object-fit: cover; }
.cwd-story__label {
  position: absolute; right: 22px; bottom: 22px;
  width: min(260px, calc(100% - 44px)); padding: 20px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 18px;
  color: var(--cwd-white); background: rgba(10, 10, 9, .83); backdrop-filter: blur(12px);
}
.cwd-story__label strong { display: block; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.cwd-story__label span { color: #d4d0c9; font-size: .8rem; }
.cwd-checks { display: grid; gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.cwd-checks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.cwd-checks i {
  display: grid; width: 28px; height: 28px; place-items: center;
  border-radius: 50%; color: var(--cwd-deep); background: #d8ba82;
  font-style: normal; font-weight: 900;
}
.cwd-checks strong { display: block; }
.cwd-checks span { color: var(--cwd-muted); font-size: .86rem; }

.cwd-cod-box {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px;
  padding: 54px; border: 1px solid rgba(215, 183, 121, .32); border-radius: 30px;
  background: radial-gradient(circle at 90% 10%, rgba(183,144,82,.22), transparent 40%), #111211;
}
.cwd-cod-steps { display: flex; gap: 16px; margin-top: 28px; }
.cwd-cod-step { flex: 1; padding: 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; }
.cwd-cod-step b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--cwd-deep); background: #d8ba82; }
.cwd-cod-step span { display: block; margin-top: 10px; color: #dad6cf; font-size: .78rem; }

/* Reviews and FAQ */
.cwd-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cwd-review { padding: 30px; border: 1px solid var(--cwd-line); border-radius: var(--cwd-radius); background: var(--cwd-white); }
.cwd-stars { color: var(--cwd-gold-dark); letter-spacing: .14em; }
.cwd-review blockquote { margin: 18px 0; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.55; }
.cwd-review small { color: var(--cwd-muted); }
.cwd-faq { max-width: 850px; margin: 40px auto 0; }
.cwd-faq details { border-top: 1px solid rgba(255,255,255,.18); }
.cwd-faq details:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.cwd-faq summary { padding: 22px 0; cursor: pointer; font-weight: 800; }
.cwd-faq p { margin: -8px 0 24px; color: #c9c6c0; }

/* Content and WooCommerce */
.cwd-content { min-height: 55vh; padding: 70px 0; }
.cwd-content article { max-width: 820px; margin: 0 auto; }
.cwd-entry-title { font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 500; line-height: 1.05; }
.cwd-entry-content > * { max-width: 100%; }
.cwd-entry-content a { color: var(--cwd-gold-dark); text-decoration: underline; }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 28px; color: var(--cwd-muted); font-size: .82rem; }
.woocommerce div.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100%; float: none; }
.woocommerce div.product .product_title { font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 500; line-height: 1.04; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--cwd-ink); font-size: 1.35rem; font-weight: 800; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto; margin: 0; padding: 0 0 20px; overflow: hidden; border: 1px solid var(--cwd-line); border-radius: var(--cwd-radius); background: var(--cwd-white); }
.woocommerce ul.products li.product a img { margin: 0 0 18px; aspect-ratio: 1/1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price { padding-inline: 18px; }
.woocommerce ul.products li.product .price { color: var(--cwd-ink); font-weight: 800; }
.woocommerce ul.products li.product .cwd-loop-order { margin: 12px 18px 0; color: var(--cwd-white); background: var(--cwd-whatsapp); }
.cwd-single-cod { margin-top: 20px; padding: 18px; border: 1px solid var(--cwd-line); border-radius: 16px; background: var(--cwd-ivory); }
.cwd-single-cod__meta { margin: 10px 0 16px; color: var(--cwd-muted); font-size: .82rem; }
.cwd-single-cod .cwd-button { width: 100%; }
.cwd-catalog-store.single-product form.cart .single_add_to_cart_button,
.cwd-catalog-store.single-product form.cart .quantity { display: none !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--cwd-gold); background: var(--cwd-ivory); }

/* Footer and floating WhatsApp */
.cwd-footer { color: #cfccc5; background: #090a0a; }
.cwd-footer__top { display: grid; grid-template-columns: 1.3fr .7fr .7fr .9fr; gap: 42px; padding: 70px 0 50px; }
.cwd-footer h3, .cwd-footer h4 { margin-top: 0; color: var(--cwd-white); font-family: Georgia, serif; font-weight: 500; }
.cwd-footer__about { max-width: 360px; font-size: .88rem; }
.cwd-footer ul { margin: 0; padding: 0; list-style: none; }
.cwd-footer li { margin: 10px 0; }
.cwd-footer a:hover { color: #d8ba82; }
.cwd-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .76rem; }
.cwd-whatsapp-float {
  position: fixed; z-index: 950; right: 22px; bottom: 22px;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 17px; border-radius: 999px;
  color: var(--cwd-white); background: var(--cwd-whatsapp);
  box-shadow: 0 12px 35px rgba(22, 124, 69, .32);
  font-size: .8rem; font-weight: 800;
}

@media (max-width: 1050px) {
  .cwd-menu { gap: 18px; }
  .cwd-products, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .cwd-category-grid { grid-template-columns: repeat(2, 1fr); }
  .cwd-category:first-child { grid-column: 1 / -1; }
  .cwd-footer__top { grid-template-columns: 1.2fr 1fr 1fr; }
  .cwd-footer__top > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  body.admin-bar .cwd-header { top: 46px; }
  .cwd-section { padding: 68px 0; }
  .cwd-nav { grid-template-columns: 1fr auto; min-height: 70px; }
  .cwd-mobile-toggle { display: block; }
  .cwd-nav__actions .cwd-button span { display: none; }
  .cwd-nav__actions .cwd-button { width: 44px; min-height: 44px; padding: 0; }
  .cwd-primary-nav {
    position: absolute; top: 100%; right: 0; left: 0;
    display: none; padding: 20px 18px 24px; border-top: 1px solid var(--cwd-line);
    background: var(--cwd-paper); box-shadow: 0 20px 30px rgba(0,0,0,.08);
  }
  .cwd-primary-nav.is-open { display: block; }
  .cwd-menu { display: grid; gap: 0; }
  .cwd-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--cwd-line); }
  .cwd-hero { min-height: 650px; }
  .cwd-hero::before { background: linear-gradient(90deg, rgba(5,6,6,.94), rgba(5,6,6,.62)); }
  .cwd-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .cwd-trust__item:nth-child(2) { border-right: 0; }
  .cwd-trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--cwd-line); }
  .cwd-story { grid-template-columns: 1fr; gap: 42px; }
  .cwd-cod-box { grid-template-columns: 1fr; padding: 34px; }
  .cwd-reviews { grid-template-columns: 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  :root { --cwd-container: min(100% - 26px, 1180px); }
  .cwd-announcement { font-size: .65rem; }
  .cwd-brand__name { font-size: .95rem; }
  .cwd-brand__name small { display: none; }
  .cwd-hero { min-height: 610px; }
  .cwd-hero__content { padding: 68px 0; }
  .cwd-hero h1 { font-size: clamp(3rem, 15vw, 4.25rem); }
  .cwd-hero__copy { font-size: .92rem; }
  .cwd-hero__actions { display: grid; }
  .cwd-hero__actions .cwd-button { width: 100%; }
  .cwd-hero__meta { gap: 12px; }
  .cwd-trust__grid, .cwd-category-grid, .cwd-products, .woocommerce ul.products { grid-template-columns: 1fr; }
  .cwd-trust__item { border-right: 0; border-bottom: 1px solid var(--cwd-line); }
  .cwd-trust__item:last-child { border-bottom: 0; }
  .cwd-category:first-child { grid-column: auto; }
  .cwd-category { min-height: 350px; }
  .cwd-section-head { align-items: start; flex-direction: column; }
  .cwd-cod-steps { flex-direction: column; }
  .cwd-footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cwd-footer__top > :first-child, .cwd-footer__top > :last-child { grid-column: 1 / -1; }
  .cwd-footer__bottom { flex-direction: column; }
  .cwd-whatsapp-float span { display: none; }
  .cwd-whatsapp-float { width: 54px; height: 54px; justify-content: center; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
