/*
Copyright (c) 2018, 2025 HerWheel Pottery LLC http://www.herwheel.com
*/

/* @import "herwheel.css"; */
/*
    Created on : Jan 30, 2018, 1:59:18 PM
    Author     : jax
    Enhanced  : Jan 2, 2025 - Horizontal layout with PayPal in info column
*/

:root {
    --primary-green: hsla(160, 100%, 37%, 1);
    --light-green: hsla(160, 100%, 45%, 1);
    --dark-green: hsla(160, 100%, 30%, 1);
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

html {
    height: 100%;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        'Fira Sans',
        'Droid Sans',
        'Helvetica Neue',
        sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    visibility: hidden;
    padding: 15px;
    margin: 0;
}

#root {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Header Section - Compact */
#toph1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    line-height: 1.2;
}

.green {
    color: var(--primary-green);
}

/* Top Controls Container - Compact */
/* First span after h1 is the potnum chooser - keep it in header */
#toph1 + span {
    display: inline-flex;
    align-items: center;
    margin: 0 0.5rem;
}

/* PayPal buttons (Add to cart and View cart) - will move to info column on desktop */
#toph1 + span + span,
#toph1 + span + span + div + span {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
}

/* iPhone warning - compact */
#toph1 + span + span + div {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--border-radius);
    margin: 0.5rem 0;
    text-align: center;
}

/* Pot Number Chooser */
#set_potnum {
    display: inline-block;
}

.potnum_chooser {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    border: 2px solid var(--primary-green);
    border-radius: var(--border-radius);
    outline: none;
    transition: all var(--transition-speed);
    width: 100px;
    text-align: center;
    background: white;
}

.potnum_chooser:hover {
    border-color: var(--light-green);
    box-shadow: var(--shadow-sm);
}

.potnum_chooser:focus {
    border-color: var(--dark-green);
    box-shadow: 0 0 0 3px rgba(0, 171, 107, 0.1);
}

/* PayPal Cart Section - Compact */
.paypal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin: 0;
    box-shadow: var(--shadow-sm);
}

/* For wider screens, use side-by-side layout */
@media (min-width: 900px) {
    body {
        padding: 20px 15px;
    }
    
    #root {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "header header"
            "slideshow paypal-add"
            "slideshow paypal-view"
            "slideshow info"
            "dots info"
            "nav nav";
        gap: 1rem 1.5rem;
        align-items: start;
    }
    
    #toph1 {
        grid-area: header;
    }
    
    /* Move PayPal "Add to cart" button to top of info column */
    #toph1 + span + span {
        grid-area: paypal-add;
        margin: 0;
        background: var(--light-gray);
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-sm);
    }
    
    /* Move PayPal "View cart" button below add to cart */
    #toph1 + span + span + div + span {
        grid-area: paypal-view;
        margin: 0;
        background: var(--light-gray);
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-sm);
    }
    
    /* If there's no iPhone warning div, the view cart is the third span */
    #toph1 + span + span + span {
        grid-area: paypal-view;
        margin: 0;
        background: var(--light-gray);
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-sm);
    }
    
    /* Hide iPhone warning on wide screens if present */
    #toph1 + span + span + div {
        display: none;
    }
    
    .slideshow-container {
        grid-area: slideshow;
    }
    
    .dots {
        grid-area: dots;
    }
    
    #pot_info {
        grid-area: info;
    }
    
    #prev_next_pot {
        grid-area: nav;
    }
}

/* Slideshow CSS - Compact */
* {
    box-sizing: border-box;
}

/* Slideshow container */
.slideshow-container {
    width: 100%;
    max-width: 550px;
    position: relative;
    margin: 0 auto;
    background: var(--light-gray);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Dots navigation */
.dots {
    text-align: center;
    margin: 0.75rem 0;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

.potimage {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 12px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    font-weight: bold;
    font-size: 18px;
    transition: all var(--transition-speed);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    user-select: none;
    backdrop-filter: blur(4px);
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

/* On hover, make controls more visible */
.prev:hover, .next:hover {
    background: rgba(0, 171, 107, 0.9);
    transform: scale(1.05);
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: calc(100% - 16px);
    left: 8px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: var(--border-radius);
}

/* Number text (1/3 etc) */
.numbertext {
    color: white;
    background: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    position: absolute;
    top: 8px;
    left: 8px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(4px);
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 14px;
    width: 14px;
    margin: 0 3px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-sm);
}

.active, .dot:hover {
    background-color: var(--primary-green);
    transform: scale(1.15);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 0.8s;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pot Information Section - Compact */
#pot_info {
    background: var(--light-gray);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: fit-content;
}

#pot_info > * {
    margin: 0;
}

#name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-gray);
    display: block;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-green);
}

#description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-gray);
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    max-height: 200px;
    overflow-y: auto;
}

#price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    display: inline-block;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary-green);
    width: fit-content;
}

#tags, #categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

#tags span, #categories span {
    background: var(--primary-green);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
}

#tags span:hover, #categories span:hover {
    background: var(--dark-green);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

#hold_or_sold {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    text-align: center;
    background: white;
    box-shadow: var(--shadow-sm);
}

/* Navigation Buttons - Compact */
#prev_next_pot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0 0 0;
    flex-wrap: wrap;
}

#prev_next_pot span {
    display: inline-block;
}

.button,
button[type="submit"],
input[type="submit"],
#prev_submit,
#next_submit {
    background: var(--primary-green);
    border: none;
    color: white;
    padding: 0.6rem 1.25rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    margin: 0.25rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-sm);
}

.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
#prev_submit:hover,
#next_submit:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button:active,
button[type="submit"]:active,
input[type="submit"]:active,
#prev_submit:active,
#next_submit:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Link buttons */
a.button {
    background: white;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

a.button:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--dark-green);
}

/* Responsive Design */
@media (max-width: 899px) {
    #root {
        grid-template-columns: 1fr;
    }
    
    .slideshow-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 13px;
    }
    
    #root {
        padding: 1rem;
    }
    
    #toph1 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #pot_info {
        padding: 1rem;
    }
    
    #name {
        font-size: 1.2rem;
    }
    
    #description {
        font-size: 0.9rem;
        padding: 0.75rem;
        max-height: 150px;
    }
    
    #price {
        font-size: 1.1rem;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    #toph1 {
        font-size: 1.1rem;
    }
    
    .prev, .next {
        padding: 10px;
        font-size: 16px;
    }
    
    #name {
        font-size: 1.1rem;
    }
    
    .button,
    button[type="submit"],
    input[type="submit"] {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .button,
    #prev_next_pot,
    .paypal,
    .prev,
    .next,
    .dots {
        display: none;
    }
}
