body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #BD9B46;
  min-height: 100vh;
}


#nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  height: 5vh;
  padding: 0 10px;
  font-family: sans-serif;
  background-color: #ffffff;   /* white bar */
  color: #BD9B46;
  font-size: 18pt;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  box-sizing: border-box;
  z-index: 10;
  cursor: url('cursor1_imresizer.png') 16 16, auto;
}

#nav p {
  margin: 0;
}

#place { text-align: left; }
#name  { text-align: center; }
#year  { text-align: right; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 20px 40px;   /* space below the fixed nav */
  box-sizing: border-box;
  cursor: url('cursor1_imresizer.png') 16 16, auto;
}


/* Header Styles */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  background: white;
  display: flex;
  align-items: center;
  cursor: url('cursor1_imresizer.png') 16 16, auto;
  justify-content: space-between;
  padding: 0 11px;
  z-index: 10;
}

.location, .brand-name, .year {
  font-size: 18pt;
  cursor: url('cursor1_imresizer.png') 16 16, auto;
  color: #BD9B46;
}

.brand-name {
  text-align: center;
  cursor: url('cursor1_imresizer.png') 16 16, auto; 
  flex: 1;
}

.year {
  text-align: right;
  cursor: url('cursor1_imresizer.png') 16 16, auto;
}

.product-section {
  display: flex;
  gap: 196px;
  align-items: flex-start;
  margin-top: 0;           /* padding on .container already handles spacing */
}
/* Product Image */
.product-image {
  position: relative;
  cursor: url('cursor1_imresizer.png') 16 16, auto;
}

p:hover {
  color: #E55DB8;
  cursor: default;
  cursor: url('cursor2_imresizer.png') 16 16, auto !important;
}

.dress-image {
  width: 457px;
  height: auto;
  border: 4px white solid;
  cursor: url('cursor1_imresizer.png') 16 16, auto;
  transition: border 0.1s;
  display: block;
}

.dress-image:hover {
  border: 4px #BD9B46 solid;
  cursor: url('cursor2_imresizer.png') 16 16, auto;
}

/* Product Details */
.product-details {
  position: relative;
  cursor: url('cursor1_imresizer.png') 16 16, auto;
  width: 609px;
}

.star1 {
  color: white;
  font-size: 20px;
  margin-top: 80px;
  position: absolute;
  transform: translateX(-50%);
  left:50%;
  transition: color 0.2s;
}

.star1:hover {
  color:#BD9B46 !important;
  cursor: url('cursor2_imresizer.png') 16 16, auto !important;
}

.product-info {
  padding: 8px 0px;
  margin-bottom: 64px;
  cursor: url('cursor1_imresizer.png') 16 16, auto;
}

.product-name {
  font-size: 18pt;
  background-color: white;
  cursor: url('cursor2_imresizer.png') 16 16, auto;
  margin-bottom: 10px;
  padding: 7px;
}

.product-material {
  font-size: 18pt;
  margin-bottom: 10px;
  cursor: url('cursor1_imresizer.png') 16 16, auto;
  padding: 7px;
  background-color: white;
}

.product-origin {
  font-size: 18pt;
  cursor: url('cursor1_imresizer.png') 16 16, auto;
  background-color: white;
  margin-bottom: 10px;
  padding: 7px;
}

/* Color Selector */
.color-selector {
  display: flex;
  flex-direction: column;
  gap: 15px;
  cursor: url('cursor2_imresizer.png') 16 16, auto;
  margin-bottom: 175px;
  width: 100%;
}

.color-label {
  background: white;
  padding: 7px 10px;
  font-size: 18pt;
  cursor: url('cursor2_imresizer.png') 16 16, auto;
  line-height: 1.4;
  display: inline-block;
  width: auto;
  white-space: nowrap;
}

.background-text {
  position: fixed;
  text-align: center;
  left: 50%;
  transform: translate(-49%, 10%);
  font-family: 'Ballet';
  color: #BD9B46;
  pointer-events: none;
  z-index: -1;              /* above bg-image, below content */
  font-size: 120pt;
  width: 100vw;
  cursor: url('cursor1_imresizer.png') 16 16, auto;
}

.back {
  position: absolute;
  background-color: white;
  top: 80px;
  font-size: 18pt;
  cursor: url('cursor2_imresizer.png') 16 16, auto;
  color: #BD9B46;
  margin-left: 125px;
  width: 70px;
  z-index: 20;
  padding: 7px;
  transition: color 0.1s;
}

.back:hover {
  position: absolute;
  background-color: white;
  top: 80px;
  font-size: 18pt;
  color: #E55DB8;
  margin-left: 125px;
  width: 70px;
  z-index: 20;
  padding: 7px;
}

.action-buttons{
  position: absolute;
  left: 0;
  right: auto;
  cursor: url('cursor2_imresizer.png') 16 16, auto;
  top: 260px;
  display: flex;
  gap: 10px;
}

.cart-btn, .checkout-btn {
  background: white;
  border: none;
  font-size: 18pt;
  color: #BD9B46;
  margin-bottom: 10px;
  transition: color 0.2s;
  transition: background-color 0.2s;
  display: flex;
  cursor: url('cursor2_imresizer.png') 16 16, auto;
  align-items: center;
  justify-content: center;
  padding: px;
}

.cart-btn {
  gap: 29px;
  cursor: url('cursor1_imresizer.png') 16 16, auto !important;
}

.cart-btn:hover, .checkout-btn:hover {
  background-color: #E55DB8;
  color: white;
  cursor: url('cursor2_imresizer.png') 16 16, auto !important;
}

.cart-plus {
  font-size: 18pt;
  cursor: url('cursor2_imresizer.png') 16 16, auto;
}

/* Responsive Design */
@media (max-width: 1280px) {
  .container {
      width: 100%;
      height: auto;
      min-height: 100vh;
  }
  
  .hero-title {
      font-size: clamp(60px, 15vw, 255px);
      width: 100%;
      padding: 0 20px;
  }
  
  .product-section {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 40px;
  }
  
  .product-details {
      width: 100%;
  }
  
  .dress-image {
      width: 100%;
      max-width: 427px;
      height: auto;
  }
}

.img-nav{
  cursor: url('cursor2_imresizer.png') 16 16, auto !important;
}

@media (max-width: 768px) {
  /* Scale down background text */

  /* bg-image is position:fixed so it always covers the full viewport while scrolling */
  .bg-image {
    display: block;
  }

  .img-nav {
  position: absolute;
  bottom: 40px; /* move to bottom */
  top: auto; /* remove top alignment */
  transform: translateY(0);
  background: none; /* remove any box */
  color: white;
  border: none;
  font-size: 2.2rem;
  z-index: 2;
   cursor: url('cursor2_imresizer.png') 16 16, auto !important;
}
.img-nav.prev{  left: 25px; }
.img-nav.next{ right: 25px; }

  .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 20px 40px;   /* top pushes content below fixed nav */
  box-sizing: border-box;
   cursor: url('cursor2_imresizer.png') 16 16, auto !important;
}
  /* Nav adjustments */
  #nav {
      width: 100%;
      font-size: 12pt;
      height: 6vh;
      padding: 0 8px;
  }

  .header {
      height: auto;
      padding: 8px;
  }

  .location, .brand-name, .year {
      font-size: 14pt;
  }

  /* Stack image above text on mobile */
  .product-section {
      flex-direction: column !important;
      flex-wrap: nowrap !important;
      padding: 50px 15px 30px;
      gap: 20px;
  }

  .product-left {
      max-width: 100% !important;
      flex: none !important;
      width: 100%;
  }

  .product-image.photodiv {
      max-width: 100% !important;
      flex: none !important;
      width: 100%;
  }

  .product-details {
      width: 100% !important;
      position: relative !important;
  }
  
  /* Make everything smaller */
  .product-name, .product-material, .product-origin {
      font-size: 14pt;
      padding: 5px;
      margin-bottom: 8px;
  }
  
  .color-label {
      font-size: 14pt;
      padding: 5px 8px;
  }
  
  .size-trigger {
      font-size: 14pt;
      height: 38px;
      min-width: 38px;
      padding: 0 10px;
  }
  
  .size-option {
      font-size: 13pt;
      height: 36px;
  }
  
  .cart-btn, .checkout-btn {
      font-size: 14pt;
      padding: 5px 10px;
      height: auto;
  }
  
  .back {
      font-size: 12pt;
      padding: 5px;
      width: 60px;
      top: 60px;
      margin-left: 15px;
  }
  
  .back:hover {
      font-size: 12pt;
      padding: 5px;
      width: 60px;
      top: 60px;
      margin-left: 15px;
      
  }
  
  /* Dress image */
  .dress-image {
      border: 5px white solid;
      max-width: 100%;
  }
  
  .dress-image:hover {
      border: 5px #BD9B46 solid;
  }
  
  /* Star adjustments */
  .star1 {
      font-size: 20px;
      margin-top: 85px;
  }
  
  /* Action buttons */
  .action-buttons {
      position: relative !important;
      top: auto !important;
      flex-direction: column;
      gap: 10px;
      width: 100%;
  }
  
  .cart-btn, .checkout-btn {
      width: 100%;
  }
  
  /* Cart modal adjustments */
  .cart-lines {
      padding: 8px;
      gap: 8px;
  }
  
  .cart-line {
      grid-template-columns: 48px 1fr 24px;
      gap: 8px;
      padding: 6px;
  }
  
  .cart-line img {
      width: 48px;
      height: 48px;
  }
  
  .cart-title {
      font-size: 13pt;
  }
  
  .cart-variant, .cart-qty-price {
      font-size: 10pt;
  }
  
  .cart-remove {
      font-size: 18px;
  }
  
  .cart-summary {
      padding: 8px;
      font-size: 13pt;
  }
  
  .cart-checkout-btn {
      padding: 6px 12px;
      font-size: 13pt;
  }
}

/* Smaller mobile phones */
@media (max-width: 480px) {

  
  #nav {
      font-size: 10pt;
  }
  
  .location, .brand-name, .year {
      font-size: 12pt;
  }
  
  .product-name, .product-material, .product-origin {
      font-size: 12pt;
  }
  
  .color-label, .size-trigger, .cart-btn, .checkout-btn{
      font-size: 12pt;
  }
}

.size-selector {
   display: flex;
  flex-direction: row;
  gap: 10px;
}

.size-title {
  background-color: #fff;
  color: #BD9B46;
  font-size: 18pt;
  padding: 7px 10px;
  cursor: url('cursor2_imresizer.png') 16 16, auto;
  line-height: 1.4;
  display: inline-block;
}

.selector-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.size-strip {
  display: flex;
  background-color: #fff;
  align-items: center;
}

/* Size selector */
.size-dropdown {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  z-index: 20;
}

.size-trigger{
  background: #fff;
  color: #BD9B46;
  border: none;
  height: 33px;
  min-width: 33px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18pt;
  cursor: url('cursor2_imresizer.png') 16 16, auto;
  transition: color .2s, background-color .2s, transform .2s;
}

.size-trigger:not(.selected):hover{
  background:#E55DB8;
  color:#fff;
  transform: rotate(90deg);
}

.size-trigger.open:not(.selected){ 
  transform: rotate(90deg); 
}

.size-trigger.selected{
  transform: none !important;
}

.size-drawer{
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  display: none;
  background: #fff;
  min-width: 100%;
  padding: 6px 0;
  box-shadow: none;
}

.size-trigger.open{
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.size-option{
  background: #fff;
  border: none;
  color: #BD9B46;
  font-size: 16pt;
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url('cursor2_imresizer.png') 16 16, auto;
  transition: background-color .15s, color .15s;
}

.size-option:hover{ 
  background:#E55DB8; 
  color:#fff; 
}

.size-option.active{ 
  background:#E55DB8; 
  color:#fff; 
}

.page-product .product-details{
  position: relative !important;
}

.page-product .product-details .action-buttons{
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  top: 560px;
  display: flex;
  gap: 10px;
}

/* Cart styles */
.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr 30px;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #BD9B46;
  padding: 8px;
  position: relative;
}

.cart-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #eee;
}

.cart-line-info {
  color: #BD9B46;
}

.cart-title {
  font-size: 16pt;
  line-height: 1.1;
}

.cart-variant, .cart-qty-price {
  font-size: 12pt;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-top: 2px solid #BD9B46;
  margin-top: 6px;
  color: #BD9B46;
}

.cart-checkout-btn {
  background: #E55DB8;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
}

.cart-checkout-btn:hover {
  background: #BD9B46;
  color: #fff !important;
}

.cart-remove {
  background: none;
  border: none;
  font-size: 22px;
  color: #BD9B46;
  cursor: url('cursor2_imresizer.png') 16 16, auto;
  transition: color 0.2s;
}

.cart-remove:hover {
  color: #E55DB8;
}

.cart-btn:disabled,
.checkout-btn:disabled {
  background: #b0b0b0 !important;
  color: #000000 !important;
  cursor: not-allowed;
  pointer-events: none;
}

.product-left{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 457px;
  flex: 0 0 457px;
}

.page-product .product-image { 
  position: relative; 
}

.page-product .product-image .back {
  position: absolute;
  left: 0;
  margin-bottom: 12px;
  background: #fff;
  color: #BD9B46;
  text-decoration: none;
  line-height: 1;
  z-index: 3;
  display: inline-block;
}

.page-product .product-image .back:hover {
  background: #ffffff;
  color: #E55DB8;
}

.page-product .product-left { 
  position: relative; 
}

.page-product a.back{
  position: absolute;
  top: -52px;
  left: 0;
  margin: 0 !important;
  background: #fff;
  color: #BD9B46;
  padding: 8px;
  line-height: 1;
  z-index: 5;
  width: fit-content;

}

.page-product a.back:hover{ 
  background:#E55DB8; 
  color:#fff; 
}

.cart-btn.just-added {
  background-color: #BD9B46;
  color: white;
}

.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #c8a96e; /* fallback color while image loads */
  background-image: url("printprint_mobile.jpeg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -2;              /* behind everything */
  pointer-events: none;
  image-rendering: auto;
  transform: translateZ(0);
  will-change: transform;
}

a {
  color: #BD9B46;
  text-decoration: none;
}

a:hover { 
  color: #E55DB8 !important; 
  cursor: url('cursor2_imresizer.png') 16 16, auto !important;
}


@media (min-width: 769px) {
  .bg-image {
    background-image: url("printprint_desktop.jpeg");
  }
}

@media (max-width: 900px) {
  .bg-image {
    height: 100vh;       
    width: 100vw;        
    background-size: cover; /* Keep it filling screen */
    background-attachment: scroll; /* iOS-safe */
  }
}

/* Make sure the product content is on top too */
.page-product .main-content {
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 768px) {

  .size-title,
  .size-option {
    font-size: 12pt;
  }
  .product-info{
    margin-bottom: 0px;
  }
  .color-selector {
    margin-bottom: 40px;
  }

}


.modal-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 18pt;
  cursor: url('cursor2_imresizer.png') 16 16, auto !important;

  border-bottom: 3px solid transparent;

  color: #BD9B46;

  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

/* hover */
.modal-tab:hover {
  opacity: 0.6;
  border-bottom-color: #BD9B46;
}

/* active tab */
.modal-tab.active {
  color: #BD9B46;
  border-bottom-color: #BD9B46;
  opacity: 1;
}

.star-modal {
  position: fixed;
  top: 0;
  left: 0;

  width: 95vw;
  height: 100vh;

  z-index: 1000;

  display: none;

  justify-content: flex-start;
  align-items: center;

  padding-left: 20px;

  box-sizing: border-box;

  cursor: url('cursor1_imresizer.png') 16 16, auto;
}

.star-modal-content {
  background: white;

  padding: 10px;

  max-width: 900px;
  width: 100%;

  position: relative;

  color: #BD9B46;

  font-size: 18pt;
}

.star-modal-close {
  position: absolute;

  top: 10px;
  right: 15px;

  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: none;
  border: none;

  font-size: 30px;

  color: #BD9B46;

  cursor: url('cursor2_imresizer.png') 16 16, auto;

  transition: opacity 0.1s ease;
}

.star-modal-close:hover {
  opacity: 0.6;
}

.star-modal-nav {
  display: flex;

  gap: 30px;

  margin-bottom: 0;
}

.modal-tab {
  background: none;

  border: none;

  padding: 0;

  font-size: 18pt;

  color: #BD9B46;

  border-bottom: 3px solid transparent;

  transition:
    opacity 0.1s ease,
    border-color 0.1s ease;

  cursor: url('cursor2_imresizer.png') 16 16, auto;
}


@media (max-width: 600px) {
  #star-modal {
    font-size: 12pt;
  }

  #star-modal p {
    font-size: 12pt;
  }

  #star-modal .modal-tab {
    font-size: 12pt !important;
  }

  .modal-content{
    font-size: 12pt !important;
  }
}