/*
Theme Name: Poster Shop (Cinezam-style Child)
Template: storefront
Description: A WooCommerce child theme that reproduces the single-product page layout of a minimalist movie-poster storefront: large product image, size/variant pills, quantity stepper, black add-to-cart button, and a structured "About the Movie" details table.
Version: 1.0.0
Author: Custom
Text Domain: poster-shop-child
*/

/* ---------------------------------------------------
   Base
--------------------------------------------------- */
:root{
  --ps-black:#111111;
  --ps-white:#ffffff;
  --ps-grey-100:#f5f5f5;
  --ps-grey-300:#e2e2e2;
  --ps-grey-500:#8a8a8a;
  --ps-grey-700:#4a4a4a;
  --ps-radius:2px;
  --ps-maxw:1200px;
  --ps-gap:64px;
}

body.single-product{
  background:var(--ps-white);
  color:var(--ps-black);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------
   Layout shell
--------------------------------------------------- */
.ps-product{
  max-width:var(--ps-maxw);
  margin:0 auto;
  padding:48px 24px 80px;
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:var(--ps-gap);
}

@media (max-width:900px){
  .ps-product{
    grid-template-columns:1fr;
    gap:32px;
    padding:24px 20px 64px;
  }
}

/* ---------------------------------------------------
   Gallery
--------------------------------------------------- */
.ps-gallery{
  position:sticky;
  top:24px;
  align-self:start;
}

@media (max-width:900px){
  .ps-gallery{ position:static; }
}

.ps-gallery__main{
  width:100%;
  aspect-ratio: 5 / 6;
  background:var(--ps-grey-100);
  border-radius:var(--ps-radius);
  overflow:hidden;
}

.ps-gallery__main img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ps-gallery__thumbs{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.ps-gallery__thumbs img{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:var(--ps-radius);
  border:1px solid var(--ps-grey-300);
  cursor:pointer;
}

/* ---------------------------------------------------
   Product info column
--------------------------------------------------- */
.ps-info__vendor{
  font-size:13px;
  color:var(--ps-grey-700);
  margin-bottom:6px;
}

.ps-info__title{
  font-size:28px;
  line-height:1.25;
  font-weight:600;
  margin:0 0 14px;
}

.ps-info__price{
  font-size:18px;
  margin-bottom:4px;
}

.ps-info__price .ps-price--sale{
  color:#c0392b;
  margin-right:8px;
}

.ps-info__price .ps-price--regular-struck{
  text-decoration:line-through;
  color:var(--ps-grey-500);
  margin-right:8px;
}

.ps-info__tax-note{
  font-size:12px;
  color:var(--ps-grey-500);
  margin-bottom:28px;
}

.ps-info__tax-note a{
  color:var(--ps-grey-700);
  text-decoration:underline;
}

/* Variation / size selector */
.ps-field{
  margin-bottom:24px;
}

.ps-field__label{
  font-size:13px;
  font-weight:600;
  margin-bottom:10px;
  display:block;
}

.ps-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.ps-pill{
  border:1px solid var(--ps-grey-300);
  background:var(--ps-white);
  border-radius:24px;
  padding:9px 16px;
  font-size:13px;
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}

.ps-pill:hover{
  border-color:var(--ps-black);
}

.ps-pill.is-selected,
.ps-pill input:checked + span{
  background:var(--ps-black);
  color:var(--ps-white);
  border-color:var(--ps-black);
}

.ps-pill input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* Quantity stepper */
.ps-qty{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--ps-grey-300);
  border-radius:24px;
  overflow:hidden;
}

.ps-qty button{
  width:38px;
  height:38px;
  border:0;
  background:transparent;
  font-size:16px;
  cursor:pointer;
}

.ps-qty input{
  width:44px;
  text-align:center;
  border:0;
  font-size:14px;
  -moz-appearance:textfield;
}

.ps-qty input::-webkit-outer-spin-button,
.ps-qty input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

/* Add to cart */
.ps-add-to-cart{
  display:block;
  width:100%;
  background:var(--ps-black);
  color:var(--ps-white);
  border:1px solid var(--ps-black);
  border-radius:28px;
  padding:16px 24px;
  font-size:15px;
  font-weight:600;
  text-align:center;
  cursor:pointer;
  margin-top:8px;
  transition:opacity .15s ease;
}

.ps-add-to-cart:hover{ opacity:.85; }

.ps-add-to-cart[disabled]{
  background:var(--ps-grey-300);
  border-color:var(--ps-grey-300);
  color:var(--ps-grey-700);
  cursor:not-allowed;
}

/* ---------------------------------------------------
   About the movie
--------------------------------------------------- */
.ps-about{
  margin-top:44px;
  padding-top:36px;
  border-top:1px solid var(--ps-grey-300);
}

.ps-about__heading{
  font-size:15px;
  font-weight:700;
  margin-bottom:14px;
}

.ps-about__synopsis{
  font-size:14px;
  line-height:1.7;
  color:var(--ps-grey-700);
  margin-bottom:22px;
}

.ps-about__table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  margin-bottom:22px;
}

.ps-about__table tr{
  border-bottom:1px solid var(--ps-grey-300);
}

.ps-about__table th{
  text-align:left;
  padding:10px 12px 10px 0;
  width:150px;
  color:var(--ps-black);
  font-weight:600;
  vertical-align:top;
}

.ps-about__table td{
  padding:10px 0;
  color:var(--ps-grey-700);
}

.ps-about__body p{
  font-size:14px;
  line-height:1.7;
  color:var(--ps-grey-700);
  margin:0 0 12px;
}

.ps-about__imdb{
  display:inline-block;
  margin-top:8px;
  font-size:13px;
  font-weight:600;
  text-decoration:underline;
}

/* Share row */
.ps-share{
  margin-top:24px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  color:var(--ps-grey-700);
}

.ps-share button{
  border:1px solid var(--ps-grey-300);
  background:transparent;
  border-radius:16px;
  padding:6px 12px;
  font-size:12px;
  cursor:pointer;
}

/* Secondary product shot below the fold */
.ps-secondary-shot{
  margin-top:48px;
}

.ps-secondary-shot img{
  width:100%;
  border-radius:var(--ps-radius);
}
