/* Gemma-Creations theme slider. Loaded AFTER styles.css / basket-page.css. */
.theme-toggle.theme-switch {
  -webkit-appearance:none;appearance:none;
  display:inline-flex;position:relative;flex:none;align-items:center;
  box-sizing:border-box;width:58px;min-width:58px;height:30px;min-height:30px;
  padding:3px;margin:0;border:1px solid #c5a678;border-radius:999px;
  background:#e9d6aa;color:#8d6227;cursor:pointer;vertical-align:middle;
  line-height:1;transition:background .18s ease,border-color .18s ease;
}
.theme-toggle.theme-switch::after {
  content:'☾';position:absolute;right:8px;top:50%;transform:translateY(-50%);
  color:#4a5568;font:700 16px/1 Arial,sans-serif;pointer-events:none;
}
.theme-toggle .theme-switch-thumb {
  display:flex;align-items:center;justify-content:center;position:relative;z-index:1;
  box-sizing:border-box;width:22px;height:22px;border-radius:50%;
  background:#fffaf0;color:#bf7c22;box-shadow:0 1px 3px #102a2f45;
  font:700 15px/1 Arial,sans-serif;transform:translateX(0);
  transition:transform .2s ease;
}
.theme-toggle.theme-switch:hover{border-color:#edc47a;background:#f3dfad}
.theme-toggle.theme-switch:focus-visible{outline:3px solid #edc47a;outline-offset:3px}
.header-links .theme-toggle{margin:0}
.head .theme-toggle.theme-switch{margin-left:7px}
@media(max-width:520px){
  .header-links{flex-wrap:wrap;row-gap:8px}
  .head .theme-toggle.theme-switch{margin-left:0}
}
html[data-theme="dark"]{
  color-scheme:dark;
  --cream:#101e25;--paper:#1a2a31;--ink:#f1f0e7;
  --muted:#bdc9c7;--line:#385159;
}
html[data-theme="dark"] body{background:#101e25;color:#f1f0e7}
html[data-theme="dark"] .theme-toggle.theme-switch{background:#2e455e;border-color:#8dabc2;color:#f1dab0}
html[data-theme="dark"] .theme-toggle.theme-switch:hover{background:#405873;border-color:#a2bfd1}
html[data-theme="dark"] .theme-toggle.theme-switch::after{content:'☀';right:auto;left:8px;color:#ffe2a6}
html[data-theme="dark"] .theme-toggle .theme-switch-thumb{background:#f6f3ea;color:#394c6c;transform:translateX(28px)}
html[data-theme="dark"] .announcement{background:#803039}
html[data-theme="dark"] .header{background:#07171e}
html[data-theme="dark"] .promise-bar{background:#1b3438;color:#e7e8d8;border-color:#41605f}
html[data-theme="dark"] .promise-bar span{color:#ffab9f}
html[data-theme="dark"] .collection{color:#f1f0e7}
html[data-theme="dark"] .section-intro h2,html[data-theme="dark"] .related h2,
html[data-theme="dark"] .banner h2,html[data-theme="dark"] .detail-head h1,
html[data-theme="dark"] .mini-info h3{color:#f4f1e8}
html[data-theme="dark"] .section-intro p,html[data-theme="dark"] .tile-body p,
html[data-theme="dark"] .detail-description,html[data-theme="dark"] .gallery-caption,
html[data-theme="dark"] .per-item-note{color:#c0cfca}
html[data-theme="dark"] .kicker,html[data-theme="dark"] .review-eyebrow{color:#f3a7ab}
html[data-theme="dark"] .product-tile,html[data-theme="dark"] .mini-card,
html[data-theme="dark"] .buy-panel,html[data-theme="dark"] .customer-reviews{
  background:#1c3036;color:#f2f0e7;border-color:#41575b;box-shadow:0 8px 27px #040c103d;
}
html[data-theme="dark"] .tile-bottom{border-color:#3d575a}
html[data-theme="dark"] .tile-bottom small,html[data-theme="dark"] .tile-bottom span,
html[data-theme="dark"] .mini-info p{color:#ffb8a9}
html[data-theme="dark"] .tile-price{background:#263c43;color:#ffe6ae}
html[data-theme="dark"] .tile-photo{background:#15242b}
html[data-theme="dark"] .related{background:#17272e}
html[data-theme="dark"] .banner{background:#20343a}
html[data-theme="dark"] .banner p{color:#c8d6d2}
html[data-theme="dark"] .craft{background:linear-gradient(140deg,#091b21,#0c302b)}
html[data-theme="dark"] .footer{background:#06141b}
html[data-theme="dark"] .detail-chips span,html[data-theme="dark"] .detail-callout{
  background:#2a4346;color:#edf0e4;
}
html[data-theme="dark"] .description-list li,html[data-theme="dark"] .price-display span,
html[data-theme="dark"] .buy-panel p{color:#c7d4cf}
html[data-theme="dark"] .price-display strong,html[data-theme="dark"] .buy-total strong{color:#ffb4a0}
html[data-theme="dark"] .counter{border-color:#4c6567}
html[data-theme="dark"] .counter button{background:#274349;color:#f2f1e7}
html[data-theme="dark"] .counter button:hover{background:#3c5d61}
html[data-theme="dark"] .buy-total{border-color:#41565c}
html[data-theme="dark"] .enquiry-message,html[data-theme="dark"] .review-form :is(input,select,textarea){
  background:#10242b;color:#f5f1e8;border-color:#547078;
}
html[data-theme="dark"] .enquiry-message::placeholder,html[data-theme="dark"] .review-form :is(input,textarea)::placeholder{color:#b5c2bc}
html[data-theme="dark"] .contact-gemma-link{background:#27494b;color:#f7e9d4;border-color:#64817b}
html[data-theme="dark"] .contact-gemma-link:hover{background:#386166}
html[data-theme="dark"] .customer-review,html[data-theme="dark"] .reviews-empty{background:#243b41;border-color:#405b60;color:#e6eee6}
html[data-theme="dark"] .review-header h2,html[data-theme="dark"] .review-form h3,
html[data-theme="dark"] .review-form label,html[data-theme="dark"] .review-author,
html[data-theme="dark"] .customer-review .review-author{color:#f0efdf}
html[data-theme="dark"] .reviews-summary,html[data-theme="dark"] .review-form>p,
html[data-theme="dark"] .review-form .review-privacy,
html[data-theme="dark"] .customer-review p,html[data-theme="dark"] .customer-review .review-date{color:#c6d5cf}
html[data-theme="dark"] .customer-review .review-stars,html[data-theme="dark"] .review-form select[name="rating"]{color:#ffd188}
html[data-theme="dark"] .review-form{border-color:#435d61}
html[data-theme="dark"] .feedback,html[data-theme="dark"] .review-feedback{color:#9fe4b8!important}
html[data-theme="dark"] .review-feedback.is-error{color:#ffb6b6!important}
html[data-theme="dark"] .thumb{background:#1b353a}
html[data-theme="dark"] .mini-hero{background:linear-gradient(130deg,#081b20,#123039)}
html[data-theme="dark"] .primary-btn{background:#b4444e}
html[data-theme="dark"] .secondary-btn{background:#264249;color:#f4ebd7}
html[data-theme="dark"] .secondary-btn:hover{background:#355a5d}
html[data-theme="dark"] .basket-add-feedback{color:#9ad9b5}
html[data-theme="dark"] .basket-qty button,html[data-theme="dark"] .basket-remove{background:#27454b;color:#f9e7db;border-color:#65807a}

/* Basket — override its individual light colour rules, not the layout. */
html[data-theme="dark"] .basket-view,html[data-theme="dark"] .basket-view .basket-page{
  background:#101e25;color:#f1f0e7;
}
html[data-theme="dark"] .basket-view .basket-page{
  background:radial-gradient(ellipse 750px 350px at 5% 0,#19323b 0,transparent 80%),#101e25;
}
html[data-theme="dark"] .basket-breadcrumbs,html[data-theme="dark"] .basket-breadcrumbs a,
html[data-theme="dark"] .basket-lead,html[data-theme="dark"] .basket-order-lead,
html[data-theme="dark"] .basket-small-note,html[data-theme="dark"] .basket-data-note,
html[data-theme="dark"] .basket-afterword,html[data-theme="dark"] .basket-price-each,
html[data-theme="dark"] .basket-line-total-label,
html[data-theme="dark"] .basket-view .basket-price-each{color:#bfcfc8}
html[data-theme="dark"] .basket-intro h1,html[data-theme="dark"] .basket-panel-title h2,
html[data-theme="dark"] .basket-view .basket-item-info h3,
html[data-theme="dark"] .basket-view .basket-line-total,
html[data-theme="dark"] .basket-summary-total strong,
html[data-theme="dark"] .basket-checkout-summary strong,
html[data-theme="dark"] .basket-afterword strong,
html[data-theme="dark"] .basket-empty h3{color:#f0eddc}
html[data-theme="dark"] .basket-intro-detail,html[data-theme="dark"] .basket-steps li,
html[data-theme="dark"] .basket-view .basket-box{
  background:#1c3036;color:#f2efe3;border-color:#405860;
}
html[data-theme="dark"] .basket-view .basket-checkout-panel{background:linear-gradient(180deg,#203a40 0,#1c3036 115px)}
html[data-theme="dark"] .basket-steps li>span{background:#294d50;color:#eee7d8}
html[data-theme="dark"] .basket-steps li strong,html[data-theme="dark"] .basket-intro-detail small{color:#e7eee4}
html[data-theme="dark"] .basket-steps li small{color:#c1cfcb}
html[data-theme="dark"] .basket-count-pill,html[data-theme="dark"] .basket-checkout-icon{
  background:#284f51;color:#f0e2be;
}
html[data-theme="dark"] .basket-view .basket-item{border-color:#40575a}
html[data-theme="dark"] .basket-view .basket-item-photo{background:#173036;border-color:#456067}
html[data-theme="dark"] .basket-view .basket-qty{background:#173239;border-color:#526e73}
html[data-theme="dark"] .basket-view .basket-qty-value,html[data-theme="dark"] .basket-view .basket-qty button{color:#f0ebd9}
html[data-theme="dark"] .basket-view .basket-qty button:hover:not(:disabled){background:#335860}
html[data-theme="dark"] .basket-view .basket-remove,html[data-theme="dark"] .basket-clear{color:#ffb3b4}
html[data-theme="dark"] .basket-view .basket-summary-total{border-color:#456066}
html[data-theme="dark"] .basket-continue,html[data-theme="dark"] .basket-breadcrumbs a{color:#b3ead6}
html[data-theme="dark"] .basket-go-checkout{background:#28544d;color:#d5f3df}
html[data-theme="dark"] .basket-go-checkout:hover{background:#32675e}
html[data-theme="dark"] .basket-checkout-summary{background:#27444a;border-color:#456267}
html[data-theme="dark"] .basket-view .basket-field label{color:#e6ede7}
html[data-theme="dark"] .basket-view .basket-field input,
html[data-theme="dark"] .basket-view .basket-field textarea{
  background:#10262d;color:#f4f0e5;border-color:#527079;
}
html[data-theme="dark"] .basket-view .basket-field :is(input,textarea)::placeholder{color:#b2c1c3}
html[data-theme="dark"] .basket-optional,html[data-theme="dark"] .basket-empty p{color:#b9c6c0}
html[data-theme="dark"] .basket-view .basket-no-payment{color:#b8ebcf}
html[data-theme="dark"] .basket-empty-icon{background:#274046;border-color:#526667}
html[data-theme="dark"] .basket-warning{background:#4a3232;color:#ffd4ca;border-color:#af6866}
html[data-theme="dark"] .basket-unavailable{border-color:#635353;color:#ffc7be}

/* Admin uses inline styles, so keep this part after its existing <style>. */
html[data-theme="dark"]:has(.head) {background:#101e25;color:#f1eee5}
html[data-theme="dark"] .head{background:#07171e}
html[data-theme="dark"] .card,html[data-theme="dark"] .order-admin-item,
html[data-theme="dark"] .edit-media{background:#1c3036;color:#f1eee5;border-color:#405860}
html[data-theme="dark"] .card p,html[data-theme="dark"] .card small,
html[data-theme="dark"] .muted,html[data-theme="dark"] .order-admin-item p{color:#c0d0cc}
html[data-theme="dark"] .product-admin-row,html[data-theme="dark"] .review{border-color:#41575b}
html[data-theme="dark"] .order-status{background:#285052;color:#e7efe7}
html[data-theme="dark"] .order-status.failed{background:#562f38;color:#ffd5d0}
html[data-theme="dark"] .order-status.completed{background:#254b3c;color:#b3f2c9}
html[data-theme="dark"] .ai-draft-panel{background:#264244;border-color:#4b6d69}
html[data-theme="dark"] .notice{background:#214e39;color:#baf2c9}
html[data-theme="dark"] .error{background:#552f39;color:#ffd1d1}
html[data-theme="dark"] .edit-media .video-label{background:#132931}
html[data-theme="dark"] .head a{color:#ffe1a7}
html[data-theme="dark"] .card :is(input:not([type=hidden]),textarea,select),
html[data-theme="dark"] .order-admin-actions select,
html[data-theme="dark"] .carousel-settings select{
  background:#0f252c;color:#f4f1e8;border-color:#527078;
}
html[data-theme="dark"] .state{color:#b3e8c4}
html[data-theme="dark"] .state.inactive{color:#ffb0ae}
@media(prefers-reduced-motion:reduce){.theme-toggle,.theme-toggle .theme-switch-thumb{transition:none}}

/* Finishing touches: maintain contrast for key text inside the basket and product details. */
html[data-theme="dark"] .basket-view .basket-summary-total,
html[data-theme="dark"] .basket-checkout-summary { color:#e4f0e6; }
html[data-theme="dark"] .basket-kicker,
html[data-theme="dark"] .basket-panel-kicker { color:#ffafa9; }
html[data-theme="dark"] .page-subtitle { color:#ffb6ad !important; }
html[data-theme="dark"] .basket-page .basket-box {
  background:#1c3036;color:#f0eee4;border-color:#405860;
}

/* Product specs in Night Mode. */
html[data-theme="dark"] .product-specs{background:#243a40;border-color:#436064}
html[data-theme="dark"] .product-specs h2{color:#f3eddb}
html[data-theme="dark"] .product-spec-row{border-color:#456167}
html[data-theme="dark"] .product-spec-row dt{color:#bfcfce}
html[data-theme="dark"] .product-spec-row dd{color:#f1eee3}
