/* style.css */
/* ------------------ Global Body & Background ------------------ */

@font-face {
  font-family: "Comic Neue";
  src: url("/fonts/ComicNeue-Bold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comic Neue";
  src: url("/fonts/ComicNeue-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
    scroll-behavior: smooth;
}

:root {
  --primary-font: "Comic Neue", sans-serif;
  --primary-pink: #ffc0dc;
  --secondary-pink: #ffb6d9;
  --accent-pink: #ff69b4;
  --light-pink: #ffb0d0;
  --dark-pink: #ff99c1;
  --shadow-rgba: rgba(0,0,0,0.5);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--primary-font);
    color: black;
    background-image: url('/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ------------------ Banner/Header ------------------ */

.title {
  text-align: center;
  margin-top: 40px;
  font-family: var(--primary-font);
}

.banner {
    height: 100vh;
    background-image: url('/banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.banner h1 {
    font-family: var(--primary-font);
    color: var(--secondary-pink);
    font-size: 90px;
    text-shadow: 3px 3px 10px var(--shadow-rgba);
    margin-bottom: 20px;
}

/* ------------------ SHOP NOW Button ------------------ */
.shop-btn {
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: var(--primary-pink);
    color: white;
    padding: 20px 60px;
    font-size: 26px;
    text-decoration: none;
    border-radius: 30px;
    font-family: var(--primary-font);
    transition: 0.3s ease;
    border: 5px solid white;
}

.shop-btn:hover {
    background-color: var(--light-pink);
    transform: scale(1.08);
}

/* ------------------ Connect With Me Text ------------------ */
.connect-text {
    position: absolute;
    top: 40px;
    left: 18%;
    color: white;
    font-size: 24px;
    font-family: var(--primary-font);
    text-shadow: 2px 2px 6px var(--shadow-rgba);
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.connect-text:hover {
    transform: scale(1.08);
}

/* ------------------ Shop Section ------------------ */
.shop-section {
    min-height: 100vh;
    background-image: url('/background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 50px 20px;
}

/* Individual clickable cards */

.shop-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.shop-card video {
    position: absolute; /* put video behind the text */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills the card without stretching */
    z-index: 0; /* behind the text */
    display: block;
}

/* --------------- Shop card images -------------- */
#crochet { background-image: url('/crochetcard.jpeg'); }
#art { background-image: url('/artcard.jpg'); }
#books { background-image: url('/ebook1cover.jpg'); }

/* ------------------ Product Images ------------------ */
.product-image {
    width: 100%;
    aspect-ratio: 5/7;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

/* --------------Crochet.html-------------- */
.crochet-page {
    background-image: url('/crochetbackground.png');
    background-size: cover;
    background-position: center;
      color: white;
}



/* ------------------ Items Grid ------------------ */
.items-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 50px 20px;
    background-color: rgba(243,243,243,0.5);
}

/* ------------------ Item Card ------------------ */
.item-card {
    width: 250px;
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.item-card img {
    width: 100%;
    border-radius: 10px;
}

.item-card h2 {
    font-family: var(--primary-font);
    font-size: 20px;
    margin: 10px 0 5px 0;
    color: var(--primary-pink);
    line-height: 1.2;
    cursor: pointer;
}

.price {
    color: var(--accent-pink);
    font-weight: bold;
    margin-bottom: 10px;
}

/* ------------------ Product Options ------------------ */
.product-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 15px;
    border-top: 1px solid var(--primary-pink);
}

.product-options.active {
    display: flex;
}

.product-options label {
    font-weight: bold;
    color: var(--primary-pink);
    font-size: 14px;
}

.product-options select,
.product-options input {
    width: 100%;
    padding: 6px 10px;
    border-radius: 8px;
    border: 2px solid var(--primary-pink);
    font-family: var(--primary-font);
    font-size: 14px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

/* ------------------ Buy Button ------------------ */
.buy-btn {
    margin-top: 5px;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    background-color: var(--primary-pink);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.buy-btn:hover {
    transform: scale(1.05);
}

/* ------------------ Back Arrow ------------------ */
.back-arrow {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 28px;                  /* same as before */
    color: var(--secondary-pink);                   /* pink shade matching theme */
    text-decoration: none;
    font-weight: bold;
    font-family: var(--primary-font); /* match other buttons */
    z-index: 200;
    transition: transform 0.2s ease;
}

.back-arrow:hover {
    transform: scale(1.1);
}
/* ------------------ Shopping Cart Icon ------------------ */
.shopping-cart {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 36px;
    z-index: 100;
}

.shopping-cart a {
    color: var(--primary-pink);
    text-decoration: none;
    position: relative;
}

#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--accent-pink);
    color: white;
    font-size: 16px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ------------------ Cart Page ------------------ */
.cart-page {
    background-color: #f9f9f9;
    min-height: 100vh;
    padding: 50px 20px;
    font-family: var(--primary-font);
    color: #333;
}

.cart-container {
    max-width: 900px;
    margin: 0 auto;
}

.cart-item{
display:flex;
align-items:center;
gap:20px;
background:white;
padding:15px 20px;
margin:15px auto;
max-width:800px;
border-radius:8px;
box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

.cart-image{
width:90px;
height:90px;
object-fit:cover;
border-radius:6px;
}

.cart-info{
display:flex;
flex-direction:column;
justify-content:center;
flex:1;
}

.cart-info h2{
color: var(--secondary-pink);
font-size:18px;
margin-bottom:5px;
}

.cart-info p {
margin:2px 0;
font-size:14px;
}

.remove-btn {
margin-top:6px;
width:90px;
padding:6px;
border:none;
background: var(--secondary-pink);
color:white;
border-radius:5px;
cursor:pointer;
}

.remove-btn:hover{
background:#e60000;
}

.quantity-input {
    width: 60px;
    padding: 5px;
    margin-top: 5px;
}

.cart-summary {
    text-align: right;
    margin-top: 30px;
}

#checkout-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--secondary-pink);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

#checkout-btn:hover, .remove-btn:hover {
    transform: scale(1.05);
}

.measurements-heading {
    font-weight: bold;
    font-size: 14px;
    color: var(--accent-pink);
    margin: 10px 0 5px 0;
    border-top: 1px solid var(--primary-pink);
    padding-top: 5px;
}

/* Divider above subtotal */

.cart-divider{
width:80%;
margin:40px auto 20px auto;
border:none;
border-top:1px solid #eee;
}

/* Subtotal text */

#cart-total{
text-align:center;
font-size:22px;
margin-top:10px;
font-weight:500;
color: var(--secondary-pink);
}

/* Checkout button */

.checkout-btn{

display:block;
margin:25px auto 60px auto;

background-color: var(--secondary-pink);
color:white;

border:none;
padding:15px 40px;

font-size:16px;
border-radius:25px;

cursor:pointer;
transition:0.3s;
}

.checkout-btn:hover{
background-color:#ff9eb0;
}

.shop-card {
    position: relative; /* needed for video layering */
    overflow: hidden;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    font-family: var(--primary-font);
    font-size: 32px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-card h2 {
    position: relative; /* ensures it sits above video */
    z-index: 2;
    pointer-events: none; /* allows video hover events */
    text-align: center;
    font-size: 32px;
}

.card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-card:hover .card-video {
    opacity: 1;
}

/* 360Visionary/ART.HTML */

.product-viewer{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
}

/* Art Product Details */
.art-page {
    background-image: url('/artbackground.png');
    background-size: cover;
    background-position: center;
    color: white;
}

.art-page .product-options {
    display: flex; /* always visible */
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid var(--primary-pink);
    background-color: white;
    border-radius: 0 0 10px 10px;
}

.art-size {
    font-size: 16px;
    font-weight: bold;      
    color: #ffb6d9;         
    margin-bottom: 2px;
}

.art-description {
    font-size: 14px;
    color: var(--secondary-pink); /* bright pink for visibility */
    line-height: 1.4;
    margin-bottom: 5px;
}

.art-page .items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 20px;
}

.item-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
}

/* Art Title Styling */
.art-title {
    text-align: center;
    margin-top: 40px;
    font-size: 70px;
    color: white;
    font-family: var(--primary-font);
    text-shadow: 2px 2px 8px var(--shadow-rgba);
}

/* Art Shop Sections */

.art-section{
    margin: 80px 40px;
}

.section-title{
    text-align: left;       /* puts title on right side */
    font-size: 42px;
    font-family: var(--primary-font);
    color: white;        /* sage green */
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px var(--shadow-rgba);
}

/* ------------------ Games, Books, Music Pages ------------------ */
.games-page {
    background-image: url('/gamesbackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
}

.music-page {
    background-image: url('/musicbackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
}

/* ------------------ Books Page ------------------ */
.books-page {
    background-image: url('/booksbackground.png'); /* ensure this file exists */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    font-family: var(--primary-font);
}

/* Section Titles */
.book-section {
    margin: 60px 40px;
}

.section-title {
    font-size: 42px;
    color: white;
    text-shadow: 2px 2px 8px var(--shadow-rgba);
    margin-bottom: 25px;
}

/* ------------------ Grid Layout ------------------ */
.books-page .items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 250px); /* fixed width like art items */
    gap: 30px; /* match art spacing */
    padding: 50px 20px; /* match art padding */
    justify-content: center; /* center the grid */
    background-color: rgba(243,243,243,0.5); /* optional */
    border-radius: 10px;
}

/* ------------------ Book Item Cards ------------------ */
.books-page .item-card {
    width: 250px;
    display: flex;                  /* add flex layout */
    flex-direction: column;         /* stack content vertically */
    justify-content: flex-start;    /* keep content at top */
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    padding-bottom: 15px;           /* add breathing room under button */
}

.books-page .item-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* ------------------ Price Styling ------------------ */
.price {
    color: #ff69b4;
    font-weight: bold;
    margin-bottom: 10px;
}

/* ------------------ Product Options & Buy Button ------------------ */
.books-page .product-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 15px; /* match art card padding */
    border-top: 1px solid var(--primary-pink);
}

.product-options label {
    font-weight: bold;
    color: #ffc0dc;
    font-size: 14px;
}

.product-options select,
.product-options input {
    width: 100%;
    padding: 4px 8px; /* reduced padding */
    border-radius: 8px;
    border: 2px solid var(--primary-pink);
    font-family: var(--primary-font);
    font-size: 13px;
    box-sizing: border-box;
}

.books-page .buy-btn {
    margin-top: 5px;
    width: calc(100% - 20px);
    padding: 10px;   /* match art card buttons */
    font-size: 16px; /* match art card buttons */
    border: none;
    background-color: var(--primary-pink);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
        margin-left: auto;        /* center if width < 100% */
    margin-right: auto;
}

.buy-btn:hover {
    transform: scale(1.05);
}

/* ------------------ Card Text Overlay ------------------ */
#books .card-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

/* ------------------ Image Container ------------------ */
.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Ensure book images match art images */
.books-page .item-card img,
.books-page .product-image {
    width: 100%;
    aspect-ratio: 5/7;
    object-fit: cover;
    border-radius: 10px;
}

/* SOLD OUT overlay centered */
.sold-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);

    background-color: rgba(255, 0, 0, 0.85);
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 8px;
    letter-spacing: 2px;

    pointer-events: none; /* lets clicks pass through */
}

/* Image container for overlay */
.image-container {
    position: relative;
    width: 100%;
}

.buy-btn:disabled {
    background-color: #888;
    cursor: not-allowed;
    opacity: 0.7;
}


/* Smooth transition */
.image-container img {
    transition: 0.3s ease;
}


/* Dim image when container has "sold" class */
.image-container.sold img {
    filter: brightness(60%) grayscale(20%);
}

.item-card.sold img {
    filter: brightness(60%) grayscale(20%);
}



.success-page {
    background-image: url('/successbackground.png'); /* keep your background */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* stack heading and paragraph */
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    font-family: 'Comic Neue', sans-serif; /* match crochet */
    color: #ffc0dc;
}

.success-page h1 {
    font-size: 72px;        /* large, prominent */
    color: var(--secondary-pink);         /* bright pink like crochet */
    text-shadow: 2px 2px 6px var(--shadow-rgba);
    margin: 0 0 20px 0;     /* space below heading */
}

.success-page p {
    font-size: 24px;        /* smaller than h1, readable */
    color: var(--primary-pink);         /* consistent pink shade */
    margin: 0 0 30px 0;     /* space below paragraph */
    line-height: 1.4;
}

.success-page a {
    font-family: var(--primary-font);
    text-decoration: none;
    color: white;
    background-color: var(--secondary-pink);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 18px;
    transition: 0.3s;
}

.success-page a:hover {
    background-color: var(--dark-pink);
    transform: scale(1.05);
}

/* ------------------ Crochet.html Size guide ------------------ */
.crochet-sizeguide {
    width: 100%;
    min-height: 100vh; /* or 100vh if you want full screen */
    background-image: url('/crochetsizebackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* -------------------- Crochet.html size guide link ----------------------- */ 
.size-guide-link {
  color: #007BFF;
  text-decoration: underline;
  font-weight: 500;
  cursor: pointer;
  scroll-behavior: smooth;
}

.size-guide-link:hover {
  color: #0056b3;
}

.ebook-section .item-card {
    margin: 10px;
    padding: 20px;
}
