/* --------------------------------------------------
   LIMITED / SIGNATURE PAGE
-------------------------------------------------- */

/* ===============================
   Sub Page Layout
   =============================== */
.product-sub-page {
  padding-left: 100px; /* increase left space */ 
  padding-right: 100px; /* increase right space */
  flex-direction: column;
  gap: 40px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text);
  text-align: left;      /* force left alignment */
  padding-left: 40px;
  width: 100%;           /* take full width */
  display: block;        /* ensure block-level */
}

.breadcrumb a {
  color: var(--text);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  font-weight: bold;
}

.cover-image {
  margin-left: -100px;   /* cancel out page padding */
  margin-right: -100px;  /* cancel out page padding */
}

.cover-image img {
  width: 100vw;         /* full viewport width */
  max-width: 100%;      /* prevent overflow */
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===============================
   Displaying / Sort
   =============================== */
.product-header {
  display: flex;                  /* put children side by side */
  justify-content: space-between; /* push one left, one right */
  align-items: center;            /* vertical alignment */
  width: 100%;                    /* span full page width */
  margin: 20px 0;                 /* spacing above/below */
  padding: 0 40px;                /* control left/right margin space */
  box-sizing: border-box;         /* include padding in width */
}

header {
  z-index: 1000;
}

.product-header p {
  font-size: 1.4rem; 
  color: #737373; /* <-- set text color */
  margin: 0;
}

.sort-btn {
  font-size: 1.4rem;
  color: #737373;
  background: none;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.sort-btn:hover {
  background-color: var(--hover);
}

/* ===============================
   Grid Layout
   =============================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: stretch;
}

.product-box {
  border: 1px solid var(--border);
  padding: 0;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth animation */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-box:hover {
  transform: translateY(-8px);   /* pops up 8px */
  box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* subtle shadow */
}


.product-box img {
  width: 100%;
  height: auto;
  margin-bottom: 0;
}

.product-box h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.product-box .desc {
  font-size: 2.2rem;     /* no space between number and unit */
  letter-spacing: 2px;
  color: var(--text);
  margin: 0;
  padding: 14px 0 6px 22px;
  border-top: none;
  text-align: left;      /* only desc is left-aligned */
  line-height: 1.3;
}

.product-box .edition {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #6E6E6E;
  margin: 0;
  padding: 0px 0 20px 22px;
  border-top: none;
  text-align: left;    /* keep edition centered */
}

.product-box .note {
  font-size: 0.95rem;
  color: #6E6E6E;
  margin: 0;
  padding: 22px 22px 20px 22px;
  text-align: right;
  border-top: 1px solid var(--border);

  line-height: 1.4;
  min-height: calc(1.4em * 3); /* reserve space for 3 lines */
}

.product-box .price {
  font-size: 1.4rem;
  color: var(--text);
  margin: 0;
  padding: 22px 22px 20px 22px;
  text-align: right;
  margin-top: auto;
  border-top: 1px solid var(--border); /* divider line */
}

.product-frame {
  border: 1px solid var(--border);   /* frame color adapts to dark/light mode */
  padding: 0px;                   /* safe spacing inside */
  margin: 0px auto;               /* center with space around */
  display: grid;
  max-width: 1200px;
}

.product-hero {
  display: flex;
  align-items: flex-end; /* align both sides at the bottom */
  gap: 50px;                 /* space between image and text */
  padding: 40px;
}

.product-gallery {
  display: flex;
  align-items: flex-start;
  gap: 20px;              /* space between thumbnails and main image */
}

.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: -20px;     /* shift thumbnails further left */
}

.product-box {
  display: flex;
  flex-direction: column;
}

.product-info-top {
  padding: 14px 22px;
}

.product-box .note {
  border-top: 1px solid var(--border);
}

.product-box .price {
  border-top: 1px solid var(--border);
  margin-top: auto;
}


.thumbnails img {
  width: 80px;   /* square size */
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
}

.thumbnails img:hover {
  border-color: var(--text); /* highlight on hover */
}

.product-image img {
  width: 500px;       /* fixed width */
  height: 400px;      /* fixed height */
  object-fit: contain; /* keep aspect ratio inside box */
  height: auto;
  display: block;
  margin-left: 20px;      /* add safe spacing from thumbnails */
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* keep content at the top */
  text-align: left;
  max-width: 600px;
  width: 100%;
  justify-content: space-between; /* pushes content up, button down */
}

.title-price {
  font-size: 3rem;
  color: var(--text);
  display: flex;
  justify-content: space-between; /* THIS is the key */
  font-weight: bold;
  align-items: flex-start; /* stable when title wraps */
  width: 100%;
}

.title-price .desc {
  font-family: 'Magda', sans-serif; 
  font-weight: normal; 
  font-size: 2.5rem;
  font-size: 3rem;     /* no space between number and unit */
  letter-spacing: 3px;
  color: var(--text);
  margin: 0;
  padding: 0px 0 10px 0px;      /* top right bottom left */
  border-top: none;
  text-align: left;   
  white-space: normal;     /* allow wrapping */
  max-width: 100%;       
  line-height: 1.1;         /* nicer multi-line rhythm */
}

.title-price h1,
.title-price .price {
  font-family: 'Magda_Light', sans-serif; /* use Magda Light */ 
  font-weight: normal; /* ensure it doesnâ€™t override */ 
  font-size: 2.5rem;
  line-height: 1;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.spec-box {
  margin-top: 48px 48px;
  width: 100%;  
  padding: 5% 0% 5% 0%; 
}

.spec-row {
  display: flex;
  align-items: baseline;
  width: 100%;
  margin-bottom: 10px;
}

.spec-label {
  font-family: 'Magda_Light', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #6E6E6E;
}

.spec-value {
  margin-left: auto;
  text-align: right;
  font-family: 'Magda', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  white-space: nowrap;
  opacity: 0.8;
}

.product-hero .edition {
  font-size: 1.2rem;
  letter-spacing: 5px;
  color: #6E6E6E;
  margin: 0;
  border-top: none;
  padding: 0% 0% 10% 0%;      /* top right bottom left */
}

.product-box {
  display: flex;
  flex-direction: column;
}

.divider {
  border: none;              /* remove default styling */
  border-top: 1px solid var(--border);
}

.product-box.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* roughly same as product cards */
}

.product-grid {
  align-items: stretch;
}

.product-info blockquote { 
  font-family: 'Magda', sans-serif; 
  color: var(--text);
  letter-spacing: 2.5px;
  margin: 20px 0; /* space above/below */ 
  padding: 7% 0 7% 0;      /* top right bottom left */
  max-width: 200%; /* ensures it stays inside text column */ 
  box-sizing: border-box; /* padding doesnâ€™t overflow */
  line-height: 1.6;    
  text-align: justify; /* justified alignment */
}

.notify-btn {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;               /* same width as blockquote */
  margin: 0;                 /* reset margins so it aligns */
  padding: 12px;

  font-family: 'Magda', sans-serif;
  font-size: 20px;
  color: var(--text);
  background: none;
  border: 1px solid var(--border);
  padding: 5% 0 5% 0;      /* top right bottom left */
  cursor: pointer;
  transition: all 0.2s ease;
}

.notify-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.product-box {
  display: grid;
  grid-template-rows:
    auto   /* image */
    auto   /* title */
    auto   /* edition */
    1fr    /* note */
    auto;  /* price */

  height: 100%;
}

.product-box .note {
  display: flex;
  align-items: right;
  justify-content: right;
  text-align: right;
  line-height: 1.4;
  min-height: calc(1.4em * 2.5);
}

/* ===============================
   Product Story Section
   =============================== */
.whale-story {
  display: block;
  align-items: flex-start;
  gap: 40px;
  margin-top: 60px;
  max-width: 1000px;   /* same width as product-info box */
  margin-left: auto;
  margin-right: auto;  /* centers the whole section */
  padding: 0; /* remove extra padding */
}

.story-text {
  flex: 2;
  margin-left: 0; /* flush with parent left edge */
}

.story-text h2 {
  font-family: 'Magda', sans-serif; 
  font-weight: normal; /* ensure it doesnâ€™t override */ 
  font-size: 2.5rem;
  font-size: 3rem;     /* no space between number and unit */
  letter-spacing: 3px;
  color: var(--text);
  margin: 0;
  padding: 0px 0 10px 0px;      /* top right bottom left */
  color: var(--text);
  text-align: left;     /* force left alignment */
}

.story-meta {
  letter-spacing: 5px;
  color: #737373;
  margin-top: 10px;
  font-size: 16px;        /* smaller text */
  padding: 0px 0 30px 0px;      /* top right bottom left */
  opacity: 1;           /* lighter look */
  text-align: left;       /* flush left like the story title */
}

.story-meta .author {
  font-weight: 600;       /* make author stand out */
}

.story-meta .date {
  margin-left: 8px;
}

.story-text p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  text-align: justify;     /* force left alignment */
  padding: 20px 0 20px 0px;      /* top right bottom left */
}

.story-photo {
  flex: 1;
  margin-top: 20px; /* spacing below text */
}

.story-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* keeps it square */
  object-fit: cover;     /* crops nicely if image isnâ€™t square */
}

.page-number {
  text-align: center;     /* center horizontally */
  font-size: 1.2rem;      /* adjust size */
  color: #6E6E6E;         /* match your theme */
  margin: 40px 0;         /* spacing above and below */
}

.footer-spacer {
  height: 120px;   /* adjust to control space */
}

/* ===============================
   Coming Soon Box
   =============================== */
.coming-soon {
  font-size: 2.2rem;
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
}


/* --------------------------------------------------
   MOBILE CONTROL LAYOUT
-------------------------------------------------- */
@media (max-width: 1250px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
.product-sub-page{
  padding-left:30px;
  padding-right:30px;
  margin-top:0px;
}

.mobile-page-title{
  display:block;
  font-family:'Magda',sans-serif;
  font-size:2.1rem;
  letter-spacing:2px;
  margin-top: 30px;
  margin-bottom:5px;
}
}


@media (max-width: 730px) {
    
.product-grid{
  grid-template-columns:1fr;
}

.product-sub-page{
  padding-left:24px;
  padding-right:24px;
  margin-top:0px;
}

/* Displaying - Sort */
.product-header{     
  padding-top:0;
  padding-left:0;
  padding-right:0;
  font-size:0.2rem;
  border-top:none;
}



  


