/*
Theme Name: Curiosity Cove
Template: twentytwentyfive
Description: The Curiosity Cove storefront: Twenty Twenty-Five (an official WordPress theme, kept up to date by WordPress) with the brand's colors, type, header and footer. Gold is reserved for the hand-gilded 24K mug.
Version: 0.1.23
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: curiosity-cove
*/

/* Large tap targets on phones for the menu and the cart. */
/* Phones: the logo, the name and the menu, account and cart icons on one row (round 2: the header
   took two rows and pushed the page down). */
@media (max-width: 480px) {
  header.wp-block-template-part .wp-block-group.alignwide { flex-wrap: nowrap; gap: 0.5rem; }
  header.wp-block-template-part .wp-block-site-logo img { width: 42px !important; height: auto; }
  header.wp-block-template-part .wp-block-site-title { font-size: 1.05rem !important; white-space: nowrap; }
}
.wp-block-navigation .wp-block-navigation-item__content { padding-block: 0.5rem; }
.wp-block-woocommerce-mini-cart .wc-block-mini-cart__button { min-height: 44px; min-width: 44px; }

/* Product photos show as soon as they arrive. WooCommerce keeps its gallery invisible until the
   slider script starts, which put the main photo at 5.7 s on a slow phone (2.8 s without it);
   the gallery looks the same before and after the script (speed, 2026-10-15). */
.woocommerce-product-gallery { opacity: 1 !important; }

/* "Edit design" on each cart and checkout mug: a small button on its own line, not the end of
   the mug's details (a shopper's review, 2026-10-15: fixing a typo from the cart wasn't obvious). */
.wc-block-components-product-details__design { display: block; margin-top: 0.5rem; }
.wc-block-components-product-details__design::before,
.wc-block-components-product-details__design .wc-block-components-product-details__name,
.wc-block-components-product-details > span:has(+ .wc-block-components-product-details__design) > span[aria-hidden="true"] { display: none; }
.wc-block-components-product-details__design a { display: inline-flex; align-items: center; min-height: 36px; padding: 0.25rem 0.9rem; border: 1px solid var(--wp--preset--color--accent-1); border-radius: 999px; color: var(--wp--preset--color--accent-1); font-weight: 600; text-decoration: none; }
@media (pointer: coarse) { .wc-block-components-product-details__design a { min-height: 44px; } }

/* The "Design your mug" button that replaces add-to-cart on studio mugs. */
.cc-design-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0.75rem 1.75rem; border-radius: 999px; background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--accent-5); font-weight: 650; text-decoration: none; }
.cc-design-button:hover, .cc-design-button:focus-visible { background: var(--wp--preset--color--accent-2); color: var(--wp--preset--color--accent-5); }
.cc-design-note { font-size: 0.875rem; color: var(--wp--preset--color--accent-6); margin-top: 0.75rem; }
.cc-gold-care { border-left: 4px solid var(--wp--preset--color--gold); background: #fbf5e6; padding: 0.75rem 1rem; border-radius: 0 10px 10px 0; }

/* Home page color picker: equal tiles, the color name under each mug (not over the photo). */
.wp-block-gallery.has-nested-images.cc-color-grid { justify-content: center; }
.wp-block-gallery.has-nested-images.cc-color-grid figure.wp-block-image { flex-grow: 0; background: #fff; border-radius: 14px; padding: 6px 6px 0; }
.wp-block-gallery.has-nested-images.cc-color-grid figure.wp-block-image figcaption { position: static; background: none; color: var(--wp--preset--color--contrast); text-shadow: none; padding: 4px 0 8px; font-size: 0.875rem; font-weight: 600; max-height: none; overflow: visible; }
.wp-block-gallery.has-nested-images.cc-color-grid figure.wp-block-image a:focus-visible { outline: 3px solid var(--wp--preset--color--accent-1); outline-offset: 2px; }

/* Home hero: on phones the picture comes first, square (round 2 reviewers). */
@media (max-width: 781px) { .wp-block-columns.cc-hero { flex-direction: column-reverse; } }
.cc-hero-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.cc-trust-row { color: var(--wp--preset--color--accent-6); }
/* Home colors: 4 small tiles across on phones, not 2 (it was about 1,400 px of scrolling). */
@media (max-width: 600px) {
  .wp-block-gallery.has-nested-images.cc-color-grid.cc-color-grid figure.wp-block-image:not(#individual-image) { width: calc(25% - var(--wp--style--unstable-gallery-gap, 16px) * 0.75); padding: 3px 3px 0; }
  .wp-block-gallery.has-nested-images.cc-color-grid figure.wp-block-image figcaption { font-size: 0.7rem; }
}
/* The shop has two products: no "Showing all 2 results" or sort menu (round 2). */
.woocommerce-result-count, .woocommerce-ordering, .wc-block-product-results-count, .wc-block-catalog-sorting { display: none !important; }
/* Product page promises: four short points. */
.cc-promises { margin: 0.5rem 0 0; padding-left: 1.2rem; font-size: 0.9rem; }
/* Gift deadline bar (e.g. Christmas), shown in season by cc-delivery.js. */
.cc-deadline-bar { box-sizing: border-box; margin: 0; padding: 0.5rem 1rem; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); text-align: center; font-weight: 600; font-size: 0.9rem; line-height: 1.5; }
/* Its one line is kept from the start in a gift season (speed: the page no longer jumps when
   the words arrive); empty, it shows nothing. The whole sentence on wide screens, one line on phones. */
.cc-deadline-bar--held { min-height: calc(1.5em + 1rem); }
.cc-deadline-bar:empty { background: transparent; }
.cc-deadline-bar .cc-bar-short { display: none; }
@media (max-width: 1023px) {
  .cc-deadline-bar .cc-bar-long { display: none; }
  .cc-deadline-bar .cc-bar-short { display: inline; }
}
@media (max-width: 400px) { .cc-deadline-bar { font-size: 0.8rem; } }
/* "Arrives Thu, Oct 15 - Fri, Oct 16 with Standard shipping (ships today if you order in the next ...)". */
.cc-eta { font-weight: 600; color: var(--wp--preset--color--accent-1); }
/* Occasion pages: studio designs as cards, each opening the studio on that design. */
.cc-design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 1rem; margin: 1.5rem 0; }
/* Gift pages: the designs use the wide column, 4 big cards across (3 on tablets, 2 on phones);
   a last row that isn't full is centered, never one card alone at the left (round 2 reviewers). */
.cc-designs.alignwide .cc-design-grid, .cc-occasion-hub.alignwide { display: flex; flex-wrap: wrap; justify-content: center; }
.cc-designs.alignwide .cc-design-card, .cc-occasion-hub.alignwide .cc-design-card { flex: 0 0 calc((100% - 3rem) / 4); min-width: 0; }
@media (max-width: 1000px) { .cc-designs.alignwide .cc-design-card, .cc-occasion-hub.alignwide .cc-design-card { flex-basis: calc((100% - 2rem) / 3); } }
@media (max-width: 600px) {
  .cc-designs.alignwide .cc-design-grid, .cc-occasion-hub.alignwide { gap: 0.75rem; }
  .cc-designs.alignwide .cc-design-card, .cc-occasion-hub.alignwide .cc-design-card { flex-basis: calc((100% - 0.75rem) / 2); }
}
.cc-designs-price { margin: 0.5rem 0 0; font-size: 1.05rem; }
.cc-designs-trust { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--wp--preset--color--accent-6); }
.cc-design-card { box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--wp--preset--color--accent-4); border-radius: 14px; background: var(--wp--preset--color--accent-5); color: inherit; text-decoration: none; }
.cc-design-card:hover, .cc-design-card:focus-visible { box-shadow: 0 8px 24px rgba(24, 41, 46, 0.1); }
.cc-design-card img { display: block; width: 100%; height: auto; }
.cc-design-name { padding: 0.65rem 0.9rem 0; font-weight: 650; }
.cc-design-cta { padding: 0.15rem 0.9rem 0.9rem; color: var(--wp--preset--color--accent-1); font-size: 0.9rem; font-weight: 600; }
.cc-deadline-line { margin: 1rem 0 0; padding: 0.75rem 1rem; border-left: 4px solid var(--wp--preset--color--accent-1); border-radius: 0 10px 10px 0; background: var(--wp--preset--color--accent-4); font-weight: 600; }
.cc-designs-ship { margin: 0.25rem 0 0; font-size: 0.95rem; }
/* The button sits below the trust line, never over it (round 2). */
.cc-designs-more { margin-top: 1rem; }
.cc-designs-more a { display: inline-block; }
/* Every shipping speed's last order day before a gift day (cc-delivery.js). */
.cc-deadline-table { margin: 0.75rem 0 0; padding: 0.75rem 1rem; border-radius: 10px; background: var(--wp--preset--color--accent-5); border: 1px solid var(--wp--preset--color--accent-4); }
.cc-deadline-table .cc-deadline-title { margin: 0 0 0.35rem; font-weight: 650; }
.cc-deadline-table ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.cc-deadline-table .cc-deadline-fine { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--wp--preset--color--accent-6); }
/* The logo is a round badge: no white square corners on the cream header. */
.wp-block-site-logo img, .custom-logo { border-radius: 50%; }

/* Reviews (cc-studio reviews.php): the buyer's private review form and the product page list. */
.cc-review-form { display: grid; gap: 1.25rem; max-width: 40rem; }
.cc-review-intro { margin: 0; font-size: 1.1rem; }
.cc-review-mug { display: grid; gap: 0.75rem; margin: 0; padding: 1rem 1.25rem 1.25rem; border: 1px solid var(--wp--preset--color--accent-4); border-radius: 14px; background: var(--wp--preset--color--accent-5); }
.cc-review-mug legend { float: left; width: 100%; margin: 0; padding: 0; font-size: 1.1rem; font-weight: 650; }
.cc-review-designs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cc-review-designs img { width: 200px; max-width: 100%; height: auto; border: 1px solid var(--wp--preset--color--accent-4); border-radius: 8px; }
.cc-review-label { margin: 0; font-weight: 600; }
.cc-review-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.1rem; }
.cc-review-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cc-review-stars label { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 2.2rem; line-height: 1; color: #a3b2b0; cursor: pointer; }
.cc-review-stars input:checked ~ label, .cc-review-stars label:hover, .cc-review-stars label:hover ~ label { color: #b7791f; }
.cc-review-stars input:focus-visible + label { outline: 3px solid var(--wp--preset--color--accent-1); outline-offset: 2px; border-radius: 6px; }
.cc-review-stars .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cc-review-field { display: grid; gap: 0.35rem; font-weight: 600; }
.cc-review-field textarea, .cc-review-field input[type="text"] { padding: 0.6rem 0.75rem; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 8px; background: var(--wp--preset--color--accent-5); font: inherit; font-weight: 400; }
.cc-review-hint { font-size: 0.875rem; font-weight: 400; color: var(--wp--preset--color--accent-6); }
.cc-review-missing { margin: 0; padding: 0.75rem 1rem; border-left: 4px solid var(--wp--preset--color--accent-3); border-radius: 0 10px 10px 0; background: #fbeee9; font-weight: 600; }
.cc-reviews { margin-top: 2.5rem; }
.cc-reviews-summary { font-weight: 600; }
/* Stars filled to the rating (--cc-rating, 0-5, decimals too). */
.cc-stars { display: inline-block; line-height: 1; letter-spacing: 0.08em; color: transparent; background: linear-gradient(90deg, #b7791f calc(var(--cc-rating, 5) * 20%), #c3cdcb 0); -webkit-background-clip: text; background-clip: text; }
@media (forced-colors: active) { .cc-stars { color: CanvasText; background: none; } }
.cc-review-rating { margin: 0; font-size: 1.1rem; }
.cc-rating-line { margin: 0 0 1rem; font-weight: 600; }
.cc-rating-line a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: inherit; text-decoration: none; }
.cc-rating-line .cc-rating-words { text-decoration: underline; text-underline-offset: 3px; }
.cc-review-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cc-home-reviews { margin-top: var(--wp--preset--spacing--50); }
.cc-review-list { display: grid; gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.cc-review { padding: 1rem 1.25rem; border: 1px solid var(--wp--preset--color--accent-4); border-radius: 14px; background: var(--wp--preset--color--accent-5); }
.cc-review-text { margin: 0.5rem 0; }
.cc-review .cc-review-photo { display: block; width: auto; max-width: min(100%, 220px); height: auto; margin: 0.5rem 0; border-radius: 8px; }
.cc-review-by { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--wp--preset--color--accent-6); }
.cc-review-reply { margin-top: 0.75rem; padding: 0.6rem 0.9rem; border-left: 3px solid var(--wp--preset--color--accent-1); border-radius: 0 8px 8px 0; background: var(--wp--preset--color--accent-4); }
.cc-review-reply p { margin: 0; }
.cc-review-reply .cc-review-reply-by { margin-bottom: 0.25rem; font-size: 0.875rem; font-weight: 650; }

/* Group savings bar above the cart (cc-studio bulk.php, assets/cc-bulk.js). */
.cc-bulk-bar { margin: 0 0 1.25rem; padding: 0.75rem 1rem; border-left: 4px solid var(--wp--preset--color--accent-1); border-radius: 0 10px 10px 0; background: var(--wp--preset--color--accent-4); font-weight: 600; }

/* The phone menu's open and close buttons: a full fingertip (44 px), not the 24 px icon. */
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
