@charset "utf-8";

/* =========================================================
   Whisker Witch — Shop (mobile-first)
   Only shop-page components: Products
   ========================================================= */
      /* Error / success messages on the magical background */
      .error {
        color: #ffdddd;
        background: rgba(120,0,0,0.7);
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        max-width: min(800px, 100% - 2rem);
        margin: 0.8rem auto;
        text-align: center;
        box-shadow: 0 0 10px rgba(0,0,0,0.6);
      }
      .success {
        color: #e9ffe9;
        background: rgba(12,96,12,0.7);
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        max-width: min(800px, 100% - 2rem);
        margin: 0.8rem auto;
        text-align: center;
        box-shadow: 0 0 10px rgba(0,0,0,0.6);
      }

      /* Page content sitting on the parchment */
      .page-content.product-page {
        justify-content: flex-start;
        align-items: stretch;
        padding: 2.4rem 2.6rem 8rem;
      }

      .product-scroll {
        width: 100%;
        height: auto;
        overflow: visible;
      }

      /* Breadcrumb styled for the parchment */
      .breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        color: #6b5840;
      }
      .breadcrumb a {
        color: #5b346f;
        text-decoration: none;
      }
      .breadcrumb a:hover {
        text-decoration: underline;
      }

      /* Product page layout tweaks to feel more magical */
      .product-page {
        width: 100%;
		padding-bottom: 2.5rem;
      }

      .product-main-layout {
        display: flex;
        flex-wrap: wrap;
        gap: 1.8rem;
      }

      .product-media-column {
        flex: 0 0 260px;
      }

      .product-info-column {
        flex: 1 1 320px;
        min-width: 0;
      }

      .product-title {
        font-family: 'Cinzel', serif;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #3c2210;
        margin-top: 0;
        margin-bottom: 0.5rem;
      }

      .product-sale-badge {
        display: inline-block;
        margin-left: 0.5rem;
        padding: 0.2rem 0.6rem;
        background-color: #b22222;
        color: #fff;
        border-radius: 999px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }

      .product-rating-summary {
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
        color: #6b5840;
      }
      .product-rating-summary .stars {
        color: #f1c40f;
        margin-right: 0.25rem;
      }
      .reviews-link {
        margin-left: 0.5rem;
        color: #5b346f;
        text-decoration: none;
      }
      .reviews-link:hover {
        text-decoration: underline;
      }

      .product-meta {
        font-size: 0.9rem;
        color: #6b5840;
        margin-bottom: 1rem;
      }
      .product-meta div + div {
        margin-top: 0.15rem;
      }

      .product-description-preview,
      .product-specs-preview {
        margin-bottom: 1.2rem;
      }
      .product-description-preview h2,
      .product-specs-preview h2,
      .product-full-details h2,
      .product-reviews h2 {
        font-family: 'Cinzel', serif;
        font-size: 1.05rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #4b2c16;
        margin-bottom: 0.4rem;
      }

      /* Media area */
      .product-main-image img {
        border-radius: 10px;
        border: 1px solid #cc99ff;
        background: #fdf7ff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        max-width: 100%;
        height: auto;
      }
      .product-thumbnails {
        margin-top: 0.6rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
      }
      .product-thumbnails img {
        border-radius: 6px;
        border: 1px solid #cc99ff;
        background: #fdf7ff;
        width: 56px;
        height: 56px;
        object-fit: cover;
        box-shadow: 0 2px 6px rgba(0,0,0,0.25);
      }

      /* Buy box from your CSS, but tuned to the theme */
      .product-buy-column {
        flex: 0 0 280px;
      }
      .buy-box {
        background: #f8f1ff;
        border: 1px solid #d6c4f0;
        border-radius: 10px;
        padding: 1rem 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
      }

      .buy-price {
        margin-bottom: 0.75rem;
        font-size: 1.05rem;
      }
      .buy-price .label {
        font-weight: bold;
        margin-right: 4px;
      }
      .buy-price .price-original {
        text-decoration: line-through;
        color: #8c7b6a;
        margin-left: 4px;
        margin-right: 6px;
      }
      .buy-price .price-sale {
        font-weight: bold;
        color: #b71c1c;
        margin-right: 6px;
      }
      .buy-price .price-regular,
      .buy-price .price-normal {
        font-weight: bold;
        color: #4B3A22;
        margin-left: 4px;
      }

      .price-badge {
        display: inline-block;
        background-color: #d32f2f;
        color: #fff;
        font-size: 0.75rem;
        padding: 2px 6px;
        border-radius: 999px;
        vertical-align: middle;
      }

      .buy-stock {
        font-weight: bold;
        margin-bottom: 0.25rem;
      }
      .buy-stock.in-stock {
        color: #1b6b37;
      }
      .buy-stock.out-of-stock {
        color: #a32222;
      }

      .buy-form {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
      }
      .buy-form label {
        font-weight: bold;
        font-size: 0.9rem;
      }
      .buy-form select {
        max-width: 90px;
      }

      .buy-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
      }
      .buy-actions a {
        text-align: center;
        text-decoration: none;
      }

      .btn-primary,
      .btn-secondary {
        display: inline-block;
        padding: 0.5rem 0.75rem;
        border-radius: 999px;
        font-weight: bold;
        border: none;
        font-family: 'Cinzel', serif;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-size: 0.85rem;
      }
      .btn-primary {
        background: linear-gradient(to bottom, #6a1b9a, #4a148c);
        color: #fff;
        box-shadow:
          0 4px 10px rgba(0,0,0,0.5),
          0 0 10px rgba(204,153,255,0.7);
      }
      .btn-primary:hover {
        background: linear-gradient(to bottom, #8d5bc0, #5e1b7a);
      }
      .btn-secondary {
        background-color: #f0e4ff;
        color: #4B3A22;
        border: 1px solid #d0c0f0;
      }
      .btn-secondary:hover {
        background-color: #e0d2ff;
      }

      .buy-note {
        margin-top: 0.5rem;
        font-size: 0.9rem;
        text-align: center;
        color: #6a3d9a;
      }

      /* Lower description + reviews */
      .product-lower-layout {
        margin-top: 2rem;
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
        gap: 2rem;
      }
      @media (max-width: 900px) {
        .product-main-layout {
          flex-direction: column;
        }
        .product-buy-column {
          order: 3;
        }
        .product-lower-layout {
          grid-template-columns: 1fr;
        }
      }

      .review-list {
        list-style: none;
        padding-left: 0;
        margin: 0 0 1rem;
      }
      .review-item {
        border-radius: 10px;
        border: 1px solid rgba(170,120,60,0.5);
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.6rem;
        background: rgba(255,248,220,0.75);
      }
      .review-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
      }
      .review-header .star {
        color: #f1c40f;
      }
      .review-meta {
        margin-top: 0.25rem;
        font-size: 0.8rem;
        color: #7a6245;
      }

      .review-form label {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
      }
      .review-form input[type="text"],
      .review-form select,
      .review-form textarea {
        width: 100%;
        max-width: 100%;
        padding: 0.4rem 0.5rem;
        border-radius: 6px;
        border: 1px solid rgba(170,120,60,0.6);
        font-family: inherit;
        font-size: 0.9rem;
        background-color: rgba(255,252,240,0.95);
      }
      .review-form input[type="submit"] {
        margin-top: 0.6rem;
        padding: 0.45rem 0.9rem;
        border-radius: 999px;
        border: 1px solid rgba(150, 90, 30, 0.8);
        background: linear-gradient(to bottom, #fbe4b3, #d8b36b);
        font-family: 'Cinzel', serif;
        font-size: 0.8rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
      }

      .back-link {
        text-align: center;
        margin-top: 1.5rem;
      }
      .back-link a {
        color: #5b346f;
        text-decoration: none;
      }
      .back-link a:hover {
        text-decoration: underline;
      }

      @media (max-width: 640px) {
        .page-content.product-page {
          padding: 2rem 1.4rem 2.6rem;
        }
      }

/* === Enchanted image viewer === */

.enchanted-viewer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* main frame */
.ev-main-frame {
  position: relative;
  padding: 10px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 10%, #fff6e3 0, #f5e1c0 35%, #e1c095 70%, #c29762 100%);
  box-shadow:
    0 10px 22px rgba(0,0,0,.4),
    0 0 20px rgba(255, 221, 160, .6);
  overflow: hidden;
}

/* main image */
#ev-main-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  background: #fdf7ef;
  transition: transform .4s ease, filter .4s ease;
}

.ev-main-frame:hover #ev-main-img {
  transform: scale(1.03);
  filter: brightness(1.02);
}

/* glowing ring */
.ev-glow-ring {
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  pointer-events: none;
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.4),
    0 0 70px rgba(180, 130, 255, 0.35);
  mix-blend-mode: screen;
}

/* tiny rune corners */
.ev-corner {
  position: absolute;
  font-size: 0.9rem;
  color: rgba(95,62,140,0.9);
  text-shadow:
    0 0 4px rgba(255,255,255,0.9),
    0 0 8px rgba(186,146,255,0.9);
  pointer-events: none;
}
.ev-corner--tl { top: 6px;  left: 10px; }
.ev-corner--tr { top: 6px;  right: 10px; }
.ev-corner--bl { bottom: 6px; left: 10px; }
.ev-corner--br { bottom: 6px; right: 10px; }

/* navigation arrows */
.ev-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: radial-gradient(circle at 30% 20%, #fff 0, #fbe2ff 40%, #d19cff 100%);
  color: #3a1b4f;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  box-shadow:
    0 3px 7px rgba(0,0,0,.4),
    0 0 10px rgba(210,160,255,.7);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  opacity: 0.9;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.ev-nav--prev { left: 8px; }
.ev-nav--next { right: 8px; }

.ev-nav:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow:
    0 4px 10px rgba(0,0,0,.5),
    0 0 16px rgba(230,190,255,.9);
  opacity: 1;
}

.ev-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* thumbnails */
.ev-thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.ev-thumb {
  border: none;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 248, 220, 0.9);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(148,112,61,0.4);
  transition: box-shadow .2s ease, transform .15s ease, background .2s ease;
}

.ev-thumb img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}

/* active + hover states */
.ev-thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 6px rgba(255, 235, 180, 0.9);
}

.ev-thumb.is-active {
  background: radial-gradient(circle at 30% 10%, #fff 0, #fbe9c0 40%, #e4c27e 100%);
  box-shadow:
    0 0 0 1px rgba(141, 92, 40, 0.8),
    0 0 8px rgba(224, 180, 100, 0.9);
}

/* fade/swap animation */
.ev-main-frame.is-swapping #ev-main-img {
  opacity: 0;
  transform: scale(0.96);
}
.ev-main-frame.is-swapping.ev-main-frame--in #ev-main-img {
  opacity: 1;
  transform: scale(1.02);
}

/* small screens */
@media (max-width: 640px) {
  .ev-main-frame {
    padding: 8px;
  }
  .ev-nav {
    width: 26px;
    height: 26px;
    font-size: 1.1rem;
  }
  .ev-thumb img {
    width: 46px;
    height: 46px;
  }
}

/* === Full-screen image viewer for product page === */

.ww-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;                /* hidden by default */
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
}

.ww-image-viewer.is-open {
  display: flex;
}

/* starry backdrop */
.ww-image-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.15), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(255,190,255,0.18), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(40,0,80,0.9), rgba(5,0,20,0.98));
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ww-image-viewer.is-open .ww-image-backdrop {
  opacity: 1;
}

/* inner shell */
.ww-image-shell {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: min(900px, 100vw - 3rem);
  padding: 1.5rem 2.25rem 1.25rem;
  border-radius: 26px;
  background: radial-gradient(circle at 30% 0%, #fdf4ff 0, #f2e0ff 35%, #2b103f 100%);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.7),
    0 0 42px rgba(210,160,255,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(10px) scale(0.97);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ww-image-viewer.is-open .ww-image-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* image frame */
.ww-image-frame {
  position: relative;
  width: 100%;
  max-height: 70vh;
  border-radius: 18px;
  padding: 10px;
  background: radial-gradient(circle at 30% 10%, #fffaf2 0, #f4e2c0 40%, #cba269 100%);
  box-shadow:
    inset 0 0 0 1px rgba(132,83,40,0.4),
    0 10px 26px rgba(0,0,0,0.55);
  overflow: hidden;
}

#ww-image-main {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fdf9f1;
  transition: transform 0.35s ease, opacity 0.18s ease;
}

/* soft magic glow around image */
.ww-image-glow {
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  pointer-events: none;
  box-shadow:
    0 0 40px rgba(255,255,255,0.5),
    0 0 90px rgba(186,146,255,0.8);
  mix-blend-mode: screen;
}

/* tiny corner runes */
.ww-rune {
  position: absolute;
  font-size: 0.95rem;
  color: rgba(80,45,120,0.95);
  text-shadow:
    0 0 4px #fff,
    0 0 10px rgba(200,160,255,0.9);
}
.ww-rune--tl { top: 8px;  left: 12px; }
.ww-rune--tr { top: 8px;  right: 12px; }
.ww-rune--bl { bottom: 8px; left: 12px; }
.ww-rune--br { bottom: 8px; right: 12px; }

/* nav buttons */
.ww-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fff 0, #fbe4ff 45%, #c58fff 100%);
  color: #311443;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.6),
    0 0 12px rgba(216,172,255,0.95);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  opacity: 0.9;
}

.ww-image-nav--prev { left: 0.6rem; }
.ww-image-nav--next { right: 0.6rem; }

.ww-image-nav:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow:
    0 5px 14px rgba(0,0,0,0.7),
    0 0 18px rgba(235,195,255,1);
  opacity: 1;
}

.ww-image-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* close button */
.ww-image-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  background: rgba(15,0,35,0.75);
  color: #fdf5ff;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow:
    0 0 8px rgba(0,0,0,0.7),
    0 0 10px rgba(255,255,255,0.6);
}

/* counter + hints */
.ww-image-counter {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f8e4ff;
}

.ww-image-hint {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #d7bfff;
  opacity: 0.85;
}

/* small screens */
@media (max-width: 640px) {
  .ww-image-shell {
    padding: 1.1rem 1.1rem 1rem;
    border-radius: 20px;
  }
  .ww-image-nav {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
}

/* cursor on page images */
.ev-main-img,
.js-gallery-image-thumb img {
  cursor: zoom-in;
}
