/* Main theme styles for Olivia's Crafts */

:root {
    --blue-color: #8ec7f5;
    --lavender-color: #c5ace9;
    --pink-color: #f18ab9;
    --deep-lavender-color: #5d527b;
    --text-on-light: #443b5b;
    --text-on-gradient: #fffafc;
    --page-gradient: linear-gradient(110deg, var(--blue-color) 0%, var(--lavender-color) 50%, var(--pink-color) 100%);
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--page-gradient);
    background-attachment: fixed;
    color: var(--text-on-light);
    scroll-behavior: smooth;
}

/* Soft decorative texture over the logo-inspired gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.16), transparent 30%);
    opacity: 0.75;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.18), transparent 24%);
    opacity: 0.8;
    z-index: -1;
}

/* Container adjustments for the split theme */
.container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

main.container {
    background-color: transparent;
    box-shadow: none;
}

/* Navigation styling */
.navbar {
    background: var(--page-gradient);
    box-shadow: 0 4px 18px rgba(68, 59, 91, 0.14);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.8rem;
    padding: 4px 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    display: block;
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 50%;
}

.navbar-nav .nav-link {
    color: var(--text-on-light);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background: rgba(255, 255, 255, 0.7);
    color: var(--deep-lavender-color);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.75rem;
}

.nav-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--text-on-light);
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-action:hover,
.nav-action:focus {
    background: rgba(255, 255, 255, 0.7);
    color: var(--deep-lavender-color);
}

.nav-action svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.cart-count {
    position: absolute;
    top: 0.1rem;
    right: 0.05rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: var(--pink-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.05rem;
    text-align: center;
}

.cart-disabled-content .btn:disabled {
    background-color: #adb5bd;
    border-color: #adb5bd;
    color: #fff;
    opacity: 1;
    cursor: not-allowed;
}

#nieuw,
#speelgoed,
#sale,
#op-maat-gemaakt,
#contact {
    scroll-margin-top: 72px;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto 2rem;
    padding-top: 2rem;
    max-width: 1100px;
    color: var(--deep-lavender-color);
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 0 rgba(93, 82, 123, 0.15);
}

.section-divider h2 {
    flex: 0 0 auto;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.active {
    background: rgba(255, 255, 255, 0.7);
    color: var(--deep-lavender-color);
    border-radius: 10px;
}

/* Button styling */
.btn-primary {
    background-color: var(--deep-lavender-color);
    border-color: var(--deep-lavender-color);
}

.btn-secondary {
    background-color: var(--pink-color);
    border-color: var(--pink-color);
    color: var(--text-on-light);
}

/* Card styling */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer styling */
footer {
    background: var(--page-gradient);
    color: var(--text-on-gradient);
    padding: 20px 0;
    margin-top: 30px;
}

.footer-left {
    color: var(--text-on-light);
}

.footer-right {
    color: var(--text-on-gradient);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.footer-right h5 {
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-right p, .footer-right a {
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-right a {
    color: var(--text-on-gradient);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-right a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-version {
    color: var(--deep-lavender-color) !important;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-showcase {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 1100px;
    margin: 0 auto;
}

.sale-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card > .product-card-img,
.product-card > .product-gallery {
    border-radius: 15px 15px 0 0;
}

/* A small, hanging tag keeps the editable price visually connected to its card. */
.price-tag {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    min-width: 4.5rem;
    padding: 0.7rem 0.65rem 0.75rem;
    border: 2px dashed rgba(255, 255, 255, 0.9);
    border-radius: 0.35rem 0.35rem 0.8rem 0.8rem;
    background: linear-gradient(145deg, var(--pink-color), var(--deep-lavender-color));
    box-shadow: 0 5px 12px rgba(68, 59, 91, 0.22);
    color: #fff;
    text-align: center;
    transform: rotate(4deg);
    transform-origin: top right;
}

.price-tag-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

.product-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-gallery {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}

.product-gallery-viewport {
    overflow: hidden;
}

.product-gallery-track {
    display: flex;
    transition: transform 0.3s ease;
}

.product-gallery-slide {
    flex: 0 0 100%;
}

.product-gallery-slide .product-card-img {
    display: block;
}

.product-gallery-control {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: flex;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(68, 50, 89, 0.7);
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.product-gallery-control:hover,
.product-gallery-control:focus-visible {
    background: rgba(68, 50, 89, 0.95);
}

.product-gallery-control-previous {
    left: 0.65rem;
}

.product-gallery-control-next {
    right: 0.65rem;
}

.product-gallery-indicator {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 1rem;
    color: #fff;
    background: rgba(68, 50, 89, 0.75);
    font-size: 0.75rem;
}

.product-gallery-dots {
    position: absolute;
    bottom: 0.7rem;
    left: 50%;
    display: flex;
    gap: 0.35rem;
    transform: translateX(-50%);
}

.product-gallery-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.product-gallery-dot.active {
    background: #fff;
}

.product-card-body {
    flex: 1;
    padding-bottom: 1.25rem;
}

/* Form styling */
.form-control:focus {
    border-color: var(--pink-color);
    box-shadow: 0 0 0 0.25rem rgba(241, 138, 185, 0.25);
}

/* Custom request form */
.custom-request-form {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        background: linear-gradient(160deg, var(--blue-color), var(--lavender-color), var(--pink-color));
    }
    
    body::before {
        width: 100%;
        height: 100%;
    }
    
    body::after {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
    
    .navbar, footer {
        background: linear-gradient(160deg, var(--blue-color), var(--lavender-color), var(--pink-color));
    }

    .navbar-nav {
        padding-top: 0.75rem;
    }

    .navbar-nav .nav-link {
        padding-left: 0.5rem;
    }

    .navbar-actions {
        margin: 0.75rem 0 0;
        justify-content: flex-start;
    }
}
