@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

/* CSS Variables for Shapes Theme Inspired Design */
:root {
    /* Colors */
    --bg-light: #FFF7DF; /* Cream background */
    --bg-dark: #000000;
    --accent-orange: #ee4f00;
    --accent-green: #a7bed3;
    --accent-pink: #fdb1b6;
    --accent-blue: #a9bffe;
    
    /* Typography */
    --font-heading: 'Paytone One', sans-serif;
    --font-body: 'Source Code Pro', monospace;
    --font-scribble: 'Permanent Marker', cursive;
    
    /* Borders and Shadows */
    --border-width: 3px;
    --border-color: #000000;
    --shadow-offset-sm: 4px;
    --shadow-offset-md: 8px;
    --shadow-offset-lg: 12px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--bg-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Marquee */
.marquee-container {
    background-color: var(--accent-orange);
    color: var(--bg-light);
    padding: 0.75rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: var(--border-width) solid var(--border-color);
}

.marquee-content {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
.site-header {
    background-color: var(--bg-light);
    border-bottom: var(--border-width) solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.main-nav a, .header-actions a {
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 1rem;
    position: relative;
    transition: all 0.2s ease;
}

.main-nav a:hover, .header-actions a:hover {
    color: var(--accent-orange);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: -1px;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border: var(--border-width) solid var(--border-color);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--border-color);
    color: var(--bg-light);
    box-shadow: var(--shadow-offset-sm) var(--shadow-offset-sm) 0 var(--accent-orange);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-offset-md) var(--shadow-offset-md) 0 var(--accent-orange);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--border-color);
    box-shadow: var(--shadow-offset-sm) var(--shadow-offset-sm) 0 var(--accent-green);
}

.btn-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-offset-md) var(--shadow-offset-md) 0 var(--accent-green);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 70vh;
    background-image: url('../assets/ui/header.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    text-shadow: 4px 4px 0 var(--accent-orange);
    -webkit-text-stroke: 1px var(--border-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-art {
    width: 80%;
    max-width: 500px;
    border: var(--border-width) solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-offset-md) var(--shadow-offset-md) 0 var(--accent-pink);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.featured-art:hover {
    transform: rotate(-2deg) scale(1.02);
}

.shape-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--accent-green);
    border: var(--border-width) solid var(--border-color);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
    animation: morph 8s ease-in-out infinite both alternate;
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Image Divider */
.squiggly-divider,
.squiggly-stroke {
    width: 100%;
    height: 80px; /* Adjust height as needed for the banner */
    display: block;
    position: relative;
    z-index: 10;
    margin: 0; /* Removed negative margins since it's a flat strip */
    background-image: url('../assets/ui/stars-divider.png');
    background-repeat: repeat-x;
    background-size: contain; /* Keeps aspect ratio without stretching */
    background-position: center;
    background-color: transparent;
    border-top: var(--border-width) solid var(--border-color);
    border-bottom: var(--border-width) solid var(--border-color);
}

/* Products Section */
.products-section {
    padding: 6rem 2rem;
    background-color: var(--accent-pink);
    background-image: url('../assets/ui/background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}



.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 320px);
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 4rem 0; /* Increased to allow vertical staggering */
}

.product-marquee-track {
    display: flex;
    width: fit-content;
    align-items: center;
    animation: scrollLeftToRight 35s linear infinite;
    gap: 3rem;
    padding-left: 3rem;
}

.product-marquee-track:hover {
    animation-play-state: paused;
}

/* Add vertical randomness */
.product-marquee-track .product-card:nth-child(2n) {
    margin-top: 50px;
}
.product-marquee-track .product-card:nth-child(3n) {
    margin-top: -40px;
}

.product-marquee-track .product-card {
    width: 450px; /* Bigger art size for horizontal scrolling */
    flex-shrink: 0;
}

.product-card {
    background-color: transparent;
    border: none;
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: scale(1.03);
    box-shadow: none;
}

.product-card.is-visible {
    animation: float 8s ease-in-out infinite;
}
.product-card.is-visible:nth-child(2) { animation-delay: 2s; }
.product-card.is-visible:nth-child(3) { animation-delay: 4s; }
.product-card.is-visible:nth-child(4) { animation-delay: 6s; }

.product-card:hover, .product-card:focus-within {
    animation-play-state: paused;
}

@keyframes float {
    0% { translate: 0 0px; rotate: 0deg; }
    33% { translate: 10px -20px; rotate: 3deg; }
    66% { translate: -8px -10px; rotate: -2deg; }
    100% { translate: 0 0px; rotate: 0deg; }
}

.product-image-wrap {
    position: relative;
    border: none;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    width: 100%;
    aspect-ratio: 3 / 4; /* Portrait rectangle */
}

.product-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-green);
    border: var(--border-width) solid var(--border-color);
    padding: 0.3rem 0.8rem;
    font-family: var(--font-heading);
    border-radius: 9999px;
    box-shadow: 2px 2px 0 var(--border-color);
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem 0;
    text-align: center;
}

.product-title {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
    color: #333;
}

.product-price {
    position: relative;
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #666;
}

.product-card .add-to-cart-btn {
    background: transparent;
    border: 1px solid #ccc;
    box-shadow: none;
    color: #333;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    transition: background 0.2s;
}

.product-card .add-to-cart-btn:hover {
    background: #f0f0f0;
    transform: none;
}

/* Stickers Section */
.stickers-section {
    padding: 6rem 0;
    background-color: var(--accent-green);
    overflow: hidden;
}

.stickers-header {
    text-align: center;
    padding: 0 2rem 3rem;
}

.stickers-header p {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: -2rem;
}

.stickers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    justify-items: center;
}

.sticker-item {
    width: 250px;
    height: 250px;
}

.sticker-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: var(--border-width) solid var(--border-color);
    box-shadow: 6px 6px 0 var(--border-color);
    background-color: #fff;
    transition: transform 0.2s;
    cursor: pointer;
}

.sticker-item img:hover {
    transform: scale(1.05) rotate(-3deg);
}

@keyframes scrollLeftToRight {
    from { transform: translateX(calc(-50% - 1.5rem)); }
    to { transform: translateX(0); }
}

/* About Section */
.about-section {
    padding: 6rem 2rem;
    background-color: var(--bg-light);
}

.about-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.avatar-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
    z-index: 1;
}

.avatar-mask {
    width: 100%;
    aspect-ratio: 3 / 4;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: transparent;
    line-height: 0;
}

.avatar-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.blob-2 {
    background-color: var(--accent-orange);
    top: -20px;
    left: -20px;
    width: 120%;
    height: 120%;
    z-index: 0;
    animation-direction: reverse;
}

.about-text-col p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--bg-light);
    padding: 4rem 2rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    font-weight: 700;
    position: relative;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width 0.3s;
}

.footer-col a:hover::after {
    width: 100%;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-width);
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px dashed var(--border-color);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-text-col .section-title {
        text-align: center !important;
    }
}

/* =========================================
   NEW ADDITIONS: Cart, Scribbles, Animations
   ========================================= */

/* Utility */
.relative {
    position: relative;
    display: inline-block;
}
.w-100 {
    width: 100%;
}

/* Scribbles & Accents */
.scribble-text {
    font-family: var(--font-scribble);
    color: var(--accent-orange);
    text-transform: none;
    font-size: 1.2em;
    transform: rotate(-3deg);
    display: inline-block;
}
.sale-tag {
    position: absolute;
    top: -15px;
    left: -15px;
    background: var(--bg-light);
    border: var(--border-width) solid var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    box-shadow: 2px 2px 0 var(--border-color);
    z-index: 10;
}
.scribble-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 30px;
    overflow: visible;
    z-index: -1;
}
.scribble-underline path {
    fill: none;
    stroke: var(--accent-pink);
    stroke-width: 8;
    stroke-linecap: round;
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden off screen */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-light);
    border-left: var(--border-width) solid var(--border-color);
    box-shadow: -10px 0 0 rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-drawer.open {
    right: 0;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: var(--border-width) solid var(--border-color);
    background: var(--accent-green);
}
.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
}
.close-cart {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    font-family: var(--font-heading);
}
.cart-body {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.empty-cart-msg {
    font-size: 1.2rem;
    font-weight: bold;
}
.cart-footer {
    padding: 1.5rem;
    border-top: var(--border-width) solid var(--border-color);
}

/* Animations */
.rotating-badge {
    animation: rotateSlow 8s linear infinite;
}
@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll Reveal */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
