/* Arya Tile Group — premium dark appearance. Dark is the first-visit default. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf0f1;
  --ink-2: #d3dade;
  --navy: #101a21;
  --navy-2: #18262f;
  --gold: #c99d63;
  --gold-light: #e8c995;
  --cream: #1b252c;
  --paper: #11191f;
  --muted: #9da8ae;
  --line: #33414a;
  --white: #e9eef0;
  --shadow: 0 20px 55px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] body {
  background: #11191f;
  color: #edf0f1;
}
html[data-theme="dark"] ::selection { background: rgba(201,157,99,.38); color: #fff; }
html[data-theme="dark"] a { color: inherit; }
html[data-theme="dark"] .utility-bar { background: #080e13; color: #b7c0c4; border-bottom: 1px solid rgba(255,255,255,.04); }
html[data-theme="dark"] .utility-right a { color: #efd4a7; }
html[data-theme="dark"] .utility-sep { background: #35434b; }
html[data-theme="dark"] .social-mini { color: #e7c58e; border-color: #47545b; }

/* Header and navigation */
html[data-theme="dark"] .site-header { background: rgba(17,25,31,.94); border-bottom-color: rgba(220,230,235,.08); }
html[data-theme="dark"] .site-header.scrolled { box-shadow: 0 10px 32px rgba(0,0,0,.32); }
html[data-theme="dark"] .brand-copy strong { color: #f3eee6; }
html[data-theme="dark"] .brand-copy small { color: #c8a777; }
html[data-theme="dark"] .brand-mark i:nth-child(4) { background: #e4d4bc; }
html[data-theme="dark"] .nav-link { color: #c0c9cd; }
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active { color: #fff; }
html[data-theme="dark"] .dropdown-panel { background: #202b32; border-color: #394750; box-shadow: 0 20px 50px rgba(0,0,0,.38); }
html[data-theme="dark"] .dropdown-panel a:hover { background: #2a3841; }
html[data-theme="dark"] .dropdown-panel b { color: #f1eee8; }
html[data-theme="dark"] .dropdown-panel small { color: #a7b0b4; }
html[data-theme="dark"] .drop-symbol { border-left-color: #46535a; }
html[data-theme="dark"] .icon-btn { color: #dce3e5; border-color: #43515a; background: rgba(255,255,255,.025); }
html[data-theme="dark"] .icon-btn:hover { background: var(--gold); border-color: var(--gold); color: #171b1e; }
html[data-theme="dark"] .header-cta { color: #e9c995; border-color: rgba(201,157,99,.58); }
html[data-theme="dark"] .header-cta:hover { background: rgba(201,157,99,.12); }
.theme-toggle .theme-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: block; }

/* Main content surfaces */
html[data-theme="dark"] .benefits-strip { background: #19232a; border-bottom-color: #2c3941; }
html[data-theme="dark"] .benefit-item { border-left-color: #394750; }
html[data-theme="dark"] .benefit-icon { color: #e0b979; background: #2c3940; }
html[data-theme="dark"] .benefit-item b { color: #edf0f1; }
html[data-theme="dark"] .benefit-item small { color: #a4afb4; }
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .consult-inner h2,
html[data-theme="dark"] .newsletter-copy h2 { color: #f0eee9; }
html[data-theme="dark"] .section-heading p { color: #a3adb2; }
html[data-theme="dark"] .section-kicker { color: #d0a76e; }
html[data-theme="dark"] .section-heading h2 em { color: #d7b17d; }
html[data-theme="dark"] .view-all,
html[data-theme="dark"] .dark-link { color: #d7b47f; }

/* Collection cards retain the original ceramic artwork while the page chrome turns dark. */
html[data-theme="dark"] .category-card { box-shadow: 0 14px 34px rgba(0,0,0,.3); }
html[data-theme="dark"] .category-card .category-overlay { background: linear-gradient(0deg, rgba(7,12,15,.9), rgba(7,12,15,.06) 76%); }
html[data-theme="dark"] .category-card p { color: rgba(245,242,235,.78); }

/* Catalogue */
html[data-theme="dark"] .products-section { background: #151f26; }
html[data-theme="dark"] .products-section:before { border-color: rgba(201,157,99,.16); box-shadow: 0 0 0 40px rgba(201,157,99,.035), 0 0 0 85px rgba(201,157,99,.025); }
html[data-theme="dark"] .circle-control { border-color: #46545d; color: #e0e5e6; }
html[data-theme="dark"] .circle-control:hover { background: var(--gold); border-color: var(--gold); color: #171b1e; }
html[data-theme="dark"] .filter-chip { border-color: #43515a; background: #1d2930; color: #bdc7cb; }
html[data-theme="dark"] .filter-chip span { color: #d4ae78; }
html[data-theme="dark"] .filter-chip:hover,
html[data-theme="dark"] .filter-chip.active { background: #c99d63; border-color: #c99d63; color: #161b1f; }
html[data-theme="dark"] .filter-chip.active span { color: #342719; }
html[data-theme="dark"] .product-card { background: #202b32; border-color: #35434b; box-shadow: 0 8px 26px rgba(0,0,0,.22); }
html[data-theme="dark"] .product-card:hover { box-shadow: 0 18px 34px rgba(0,0,0,.34); }
html[data-theme="dark"] .product-meta { color: #a5b0b5; }
html[data-theme="dark"] .product-code { color: #dfb77e; }
html[data-theme="dark"] .product-info h3 { color: #f0eee9; }
html[data-theme="dark"] .product-facts { color: #bac3c6; border-top-color: #39464e; }
html[data-theme="dark"] .product-facts span + span { border-right-color: #43515a; }
html[data-theme="dark"] .product-card .product-image { background: #28333a; }
html[data-theme="dark"] .product-card .product-image img { background: #e6e0d7; }
html[data-theme="dark"] .muted-badge { background: rgba(25,34,40,.92); color: #e8c995; border: 1px solid rgba(232,201,149,.2); }
html[data-theme="dark"] .quick-view { background: rgba(12,18,22,.92); color: #f1eee8; }
html[data-theme="dark"] .products-footer { color: #a7b1b5; }
html[data-theme="dark"] .mobile-gallery-hint { color: #b7a080; }
html[data-theme="dark"] .products-viewport { scrollbar-color: #9f7d50 #2c3941; }
html[data-theme="dark"] .products-viewport::-webkit-scrollbar-track { background: #2c3941; }
html[data-theme="dark"] .products-viewport::-webkit-scrollbar-thumb { background: #9f7d50; }

/* Brand story and editorial areas */
html[data-theme="dark"] .editorial-banner { background: #101a20; }
html[data-theme="dark"] .editorial-image:after { background: linear-gradient(90deg, transparent 55%, #101a20 100%); }
html[data-theme="dark"] .editorial-copy p { color: #b8c2c5; }
html[data-theme="dark"] .editorial-stats { background: rgba(0,0,0,.16); border-right-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .editorial-stats span { color: #b4bec2; }
html[data-theme="dark"] .gallery-card { background: #202b31; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
html[data-theme="dark"] .consult-section { background: #202b31; border-block: 1px solid #33414a; }
html[data-theme="dark"] .consult-inner p { color: #b2bdc1; }
html[data-theme="dark"] .consult-ornament { color: rgba(201,157,99,.075); }
html[data-theme="dark"] .btn-outline-light { color: #ead4b0; border-color: #92764f; }
html[data-theme="dark"] .btn-outline-light:hover { background: var(--gold); color: #171b1e; }

/* Articles and testimonials */
html[data-theme="dark"] .article-card { background: #202a31; border-color: #35434b; }
html[data-theme="dark"] .article-meta { color: #9fabb0; }
html[data-theme="dark"] .article-content h3 { color: #e8ecec; }
html[data-theme="dark"] .article-content h3 a:hover { color: #e0b779; }
html[data-theme="dark"] .article-more { color: #d5b17d; border-top-color: #39464e; }
html[data-theme="dark"] .testimonial-section { background: #0e171d; }
html[data-theme="dark"] .testimonial-card { background: #1b2931; border-color: #3a4850; box-shadow: 0 16px 38px rgba(0,0,0,.18); }
html[data-theme="dark"] .testimonial-card > p { color: #e5e9e9; }
html[data-theme="dark"] .testimonial-person { border-top-color: #3a4850; }
html[data-theme="dark"] .testimonial-person small,
html[data-theme="dark"] .person-location { color: #aeb9bd; }
html[data-theme="dark"] .person-avatar { background: #c99d63; color: #1b2023; }

/* Newsletter and footer */
html[data-theme="dark"] .newsletter-section { background: #1b262d; border-top: 1px solid #303d45; }
html[data-theme="dark"] .newsletter-icon { color: #d8b27b; border-color: #8d7048; }
html[data-theme="dark"] .newsletter-copy p { color: #aeb9bd; }
html[data-theme="dark"] .newsletter-form { background: #111a20; border-color: #3c4a52; }
html[data-theme="dark"] .newsletter-form input { color: #edf0f1; }
html[data-theme="dark"] .newsletter-form input::placeholder { color: #839097; }
html[data-theme="dark"] .newsletter-form button { background: #c99d63; color: #171b1e; }
html[data-theme="dark"] .newsletter-form button:hover { background: #e1bc83; }
html[data-theme="dark"] .newsletter-form small { color: #b7d5a5; }
html[data-theme="dark"] .site-footer { background: #090f14; color: #c4cdd0; border-top: 1px solid #29363e; }
html[data-theme="dark"] .footer-brand-col > p { color: #a8b2b6; }
html[data-theme="dark"] .footer-links h3,
html[data-theme="dark"] .footer-contact h3 { color: #f1e9dd; }
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .footer-contact > a,
html[data-theme="dark"] .footer-contact > p { color: #b7c1c4; }
html[data-theme="dark"] .footer-contact b { color: #e6e9e8; }
html[data-theme="dark"] .footer-hours { color: #d1ad78; border-top-color: #354149; }
html[data-theme="dark"] .footer-bottom { border-top-color: #303d45; color: #8e9ba1; }
html[data-theme="dark"] .footer-bottom a { color: #dfc59e; }
html[data-theme="dark"] .footer-social a { border-color: #43515a; color: #e1c18d; }
html[data-theme="dark"] .footer-social a:hover { color: #141a1e; }

/* Search, product details and floating controls */
html[data-theme="dark"] .search-panel { background: rgba(3,8,11,.78); }
html[data-theme="dark"] .search-panel-inner,
html[data-theme="dark"] .quick-modal { background: #1b262d; color: #edf0f1; border: 1px solid #3b4951; box-shadow: 0 25px 80px rgba(0,0,0,.55); }
html[data-theme="dark"] .close-panel { color: #d6dfe2; border-color: #48565e; }
html[data-theme="dark"] .close-panel:hover { background: var(--gold); border-color: var(--gold); color: #172027; }
html[data-theme="dark"] .search-input-wrap { background: #111a20; border-color: #43515a; }
html[data-theme="dark"] .search-input-wrap input { color: #f0f2f1; }
html[data-theme="dark"] .search-input-wrap input::placeholder { color: #8d999e; }
html[data-theme="dark"] .search-submit { background: #d3aa70; border-color: #d3aa70; color: #172027; }
html[data-theme="dark"] .search-submit:hover { background: #e4c28e; border-color: #e4c28e; }
html[data-theme="dark"] .search-hint { color: #a9b3b7; }
html[data-theme="dark"] .search-result { background: #202d35; border-color: #3a4850; color: #eef0ed; }
html[data-theme="dark"] .search-result small { color: #d2ad79; }
html[data-theme="dark"] .quick-info p { color: #b5c0c3; }
html[data-theme="dark"] .quick-specs { border-block-color: #3a4850; }
html[data-theme="dark"] .quick-specs > div { border-bottom-color: #3a4850; }
html[data-theme="dark"] .quick-specs small { color: #9eaaaf; }
html[data-theme="dark"] .quick-specs b { color: #edf0ef; }
html[data-theme="dark"] .quick-image { background: #29363d; }
html[data-theme="dark"] .modal-close { background: rgba(18,26,32,.92); }
html[data-theme="dark"] .back-to-top { color: #161b1e; }
html[data-theme="dark"] .toast { background: #e0b779; color: #141a1e; }
html[data-theme="dark"] input,
html[data-theme="dark"] textarea { accent-color: var(--gold); }
html[data-theme="dark"] :focus-visible { outline: 2px solid #dfb777; outline-offset: 3px; }

/* Mobile drawer must use the same dark surface and legible contrast. */
@media (max-width: 850px) {
  html[data-theme="dark"] .site-header { background: rgba(17,25,31,.98); }
  html[data-theme="dark"] .main-nav { background: #131d24; box-shadow: -18px 0 55px rgba(0,0,0,.5); }
  html[data-theme="dark"] .mobile-nav-head { border-bottom-color: #35434b; }
  html[data-theme="dark"] .mobile-nav-title { color: #f2eee7; }
  html[data-theme="dark"] .mobile-nav-close { background: #202d35; color: #e7d5b8; border-color: #46545c; }
  html[data-theme="dark"] .main-nav .nav-link { color: #d0d8da; border-bottom-color: #303e46; }
  html[data-theme="dark"] .main-nav .nav-link:hover,
  html[data-theme="dark"] .main-nav .nav-link.active { color: #f0c98f; }
  html[data-theme="dark"] .main-nav .dropdown-panel { background: #1b2931; }
  html[data-theme="dark"] .main-nav .dropdown-panel a:hover { background: #283840; }
  html[data-theme="dark"] .mobile-backdrop { background: rgba(0,0,0,.7); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] *, html[data-theme="dark"] *::before, html[data-theme="dark"] *::after { scroll-behavior: auto !important; }
}

/* Optional light appearance when selected from the header toggle. */
html[data-theme="light"] { color-scheme: light; }

/* Silent product motion previews: each card reveals its matching local MP4 on hover. */
.hover-preview-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
  background: transparent;
}
.category-card .hover-preview-video { z-index: -2; }
.category-card > img {
  transition: opacity .32s ease, transform .65s cubic-bezier(.2,.7,.2,1);
}
.category-card.preview-playing > img { opacity: 0; }
.category-card.preview-playing > .hover-preview-video { opacity: 1; }
.product-image { isolation: isolate; }
.product-image > img {
  position: relative;
  z-index: 0;
  transition: opacity .32s ease, transform .5s ease;
}
.product-image > .hover-preview-video { z-index: 1; }
.product-image.preview-playing > img { opacity: 0; }
.product-image.preview-playing > .hover-preview-video { opacity: 1; }
.product-image > .product-badge { z-index: 3; }
.product-image > .quick-view { z-index: 4; }
@media (prefers-reduced-motion: reduce) {
  .hover-preview-video { transition: none; }
}


/* Touch/mobile behavior: product tiles stay as still images. The only mobile
   product video is the matching silent loop inside the open specifications dialog. */
@media (max-width: 850px), (hover: none), (pointer: coarse) {
  [data-hover-preview] > [data-hover-video] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  [data-hover-preview].preview-playing > img,
  .product-image.preview-playing > img,
  .category-card.preview-playing > img {
    opacity: 1 !important;
    visibility: visible !important;
  }
  [data-hover-preview].preview-playing > [data-hover-video] {
    display: none !important;
    opacity: 0 !important;
  }
  /* Keep the modal's dedicated video element available when specifications open. */
  #quickViewBackdrop:not(.open) #quickVideo {
    display: none !important;
  }
  #quickViewBackdrop.open #quickVideo {
    display: block;
  }
}


/* Product cards now stay on their still image; the detail dialog owns the video. */
.product-image{overflow:hidden}
.product-image>img{transform:scale(1);transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.product-card:hover .product-image>img,.product-card:focus-within .product-image>img{transform:scale(1.055)}
@media(prefers-reduced-motion:reduce){.product-image>img{transition:none}}
