html {
  font-size: 14px;
}

:root {
    --craft-bg: #f6efe2;
    --craft-panel: #fffaf2;
    --craft-panel-strong: #f3e7d3;
    --craft-border: #d7c3a3;
    --craft-text: #3e2d20;
    --craft-muted: #6d5b4b;
    --craft-accent: #6b4f38;
    --craft-accent-dark: #533a27;
    --craft-success: #4f6a3d;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background: linear-gradient(180deg, #fbf6ee 0%, var(--craft-bg) 100%);
    color: var(--craft-text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--craft-accent-dark);
}

a {
    color: var(--craft-accent);
}

    a:hover {
        color: var(--craft-accent-dark);
    }

.navbar {
    background: linear-gradient(180deg, #f7ecda 0%, #efe0c7 100%) !important;
    border-bottom: 1px solid var(--craft-border) !important;
}

    .navbar .nav-link,
    .navbar .navbar-brand {
        color: var(--craft-text) !important;
    }

        .navbar .nav-link:hover,
        .navbar .navbar-brand:hover {
            color: var(--craft-accent-dark) !important;
        }

.container {
    max-width: 1150px;
}

main {
    background: rgba(255, 251, 243, 0.7);
    border: 1px solid rgba(215, 195, 163, 0.45);
    border-radius: 14px;
    padding: 18px 20px;
}

.footer {
    background: #eee1cc;
    color: var(--craft-muted);
    border-top-color: var(--craft-border) !important;
}

.btn,
.view-button,
.stall-look-button {
    border-radius: 6px;
}

.btn-secondary,
.view-button,
.stall-look-button {
    background: var(--craft-accent);
    border-color: var(--craft-accent);
    color: #fff;
}

    .btn-secondary:hover,
    .view-button:hover,
    .stall-look-button:hover {
        background: var(--craft-accent-dark);
        border-color: var(--craft-accent-dark);
        color: #fff;
    }

.product-card,
.product-detail,
.stall-piece,
#productImageCarousel {
    background-color: var(--craft-panel);
    border: 1px solid var(--craft-border);
    box-shadow: 0 8px 20px rgba(80, 54, 33, 0.12);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-card {
    width: 300px;
    padding: 20px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

    .product-card h3 {
        margin-top: 0;
    }

.wood-type {
    color: var(--craft-muted);
    font-style: italic;
}

.short-description {
    min-height: 80px;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--craft-success);
}

.view-button {
    background-color: var(--craft-accent);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

    .view-button:hover {
        background-color: #486448;
    }

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-detail {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

.detail-image {
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
    display: block;
    margin-bottom: 20px;
}

.breadcrumb-nav {
    margin-bottom: 20px;
    color: #666;
}

    .breadcrumb-nav a {
        text-decoration: none;
    }

.hero {
    text-align: center;
    padding: 80px 20px;
}

    .hero h1 {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

.stall-hero {
    height: 500px;
    background-image: linear-gradient( rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('/images/stall-banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stall-overlay {
    text-align: center;
    color: white;
}

    .stall-overlay h1 {
        font-size: 4rem;
        font-weight: bold;
    }

.tagline {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.welcome-section {
    max-width: 900px;
    margin: 50px auto;
    text-align: center;
}

    .welcome-section p {
        font-size: 1.2rem;
        line-height: 1.8;
    }
.featured-section {
    padding: 55px 25px;
    background: #f7f1e5;
    border-top: 1px solid #dbcbaa;
    border-bottom: 1px solid #dbcbaa;
}

    .featured-section h2 {
        text-align: center;
        color: #5c422d;
        margin-bottom: 10px;
    }

.featured-intro {
    max-width: 700px;
    margin: 0 auto 35px;
    text-align: center;
    color: #665f55;
    font-size: 1.1rem;
}

.featured-section .product-card {
    background: #fffdf8;
    border: 1px solid #d7c5a5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .featured-section .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(70, 50, 30, 0.18);
    }

.featured-section .product-image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

#productImageCarousel {
    max-width: 700px;
    margin: 0 auto 25px;
    background: #f5f1e8;
    border-radius: 12px;
    overflow: hidden;
}

.product-gallery-image {
    width: 100%;
    height: 520px;
    object-fit: contain;
    background: #f5f1e8;
}

.carousel-control-prev,
.carousel-control-next {
    width: 12%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(50, 35, 25, 0.7);
    border-radius: 50%;
    padding: 18px;
}

.product-thumbnail-button {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.75;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .product-thumbnail-button:hover {
        opacity: 1;
        transform: translateY(-1px);
    }

    .product-thumbnail-button.active {
        opacity: 1;
        border-color: #6b4f38;
        box-shadow: 0 0 0 2px rgba(107, 79, 56, 0.2);
    }

.product-thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}
.stall-page {
    padding: 30px 20px 70px;
    background: linear-gradient( rgba(250, 246, 237, 0.96), rgba(238, 226, 204, 0.96) );
}

.stall-heading {
    max-width: 850px;
    margin: 10px auto 45px;
    text-align: center;
}

    .stall-heading h1 {
        color: #5b3d28;
        font-size: 2.7rem;
        margin-bottom: 12px;
    }

    .stall-heading p {
        color: #6c6258;
        font-size: 1.15rem;
    }


/* Products laid out like items across a stall */

.stall-products {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 55px 35px;
}


/* Individual craft piece */

.stall-piece {
    position: relative;
    text-align: center;
    padding: 18px 18px 28px;
    background: #fffdf8;
    border: 1px solid #d6c3a3;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(73, 48, 28, 0.13);
}


    /* Wooden shelf beneath every piece */

    .stall-piece::after {
        content: "";
        position: absolute;
        left: -8px;
        right: -8px;
        bottom: -15px;
        height: 17px;
        border-radius: 2px;
        background: linear-gradient( 90deg, #765034, #a9784d, #795236 );
        box-shadow: 0 6px 6px rgba(0, 0, 0, 0.18);
    }


/* Photograph */

.stall-image-link {
    display: block;
}

.stall-product-image {
    width: 100%;
    height: 260px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.stall-image-link:hover .stall-product-image {
    transform: scale(1.025);
}


/* Craft-fair price/info ticket */

.stall-ticket {
    margin-top: 15px;
    padding: 16px 12px;
    background: #f6eddc;
    border: 1px solid #d7c29d;
    border-radius: 4px;
}

    .stall-ticket h2 {
        margin: 0 0 5px;
        color: #4e3828;
        font-size: 1.3rem;
    }

.stall-wood {
    color: #697457;
    font-style: italic;
}

.stall-description {
    min-height: 70px;
    margin: 12px 0;
    color: #625b52;
    line-height: 1.5;
}

.stall-price {
    display: block;
    margin: 10px 0 15px;
    color: #435b37;
    font-size: 1.35rem;
}


/* Button */

.stall-look-button {
    display: inline-block;
    padding: 9px 16px;
    background: #657750;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

    .stall-look-button:hover {
        background: #50623e;
        color: white;
    }


/* Responsive polish */

@media (max-width: 992px) {
    main {
        padding: 16px;
    }

    .hero {
        padding: 60px 16px;
    }

    .hero h1,
    .stall-overlay h1 {
        font-size: 2.6rem;
    }

    .product-gallery-image {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    main {
        border-radius: 10px;
        padding: 14px;
    }

    .product-grid {
        gap: 14px;
    }

    .product-card {
        width: 100%;
        padding: 16px;
    }

    .product-detail {
        padding: 14px;
    }

    .product-gallery-image {
        height: 340px;
    }

    .product-thumbnail-image {
        width: 68px;
        height: 68px;
    }

    .stall-products {
        gap: 38px 18px;
    }

    .stall-heading h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 15px;
    }

    .navbar-brand {
        font-size: 1.15rem;
    }

    .hero {
        padding: 48px 12px;
    }

    .hero h1,
    .stall-overlay h1 {
        font-size: 2rem;
    }

    .hero p,
    .tagline,
    .stall-heading p {
        font-size: 1rem;
    }

    .product-image,
    .stall-product-image {
        height: 210px;
    }

    .product-gallery-image {
        height: 280px;
    }

    .product-thumbnail-image {
        width: 58px;
        height: 58px;
    }

    .breadcrumb-nav {
        font-size: 0.95rem;
    }

    .stall-heading h1 {
        font-size: 1.95rem;
    }

    .purchase-panel {
        margin-top: 30px;
        padding: 22px;
        max-width: 480px;
        background: #f7f1e5;
        border: 1px solid #d7c29d;
        border-radius: 8px;
    }

        .purchase-panel h3 {
            color: #5b3d28;
        }

    .purchase-price {
        color: #435b37;
        font-size: 1.5rem;
        font-weight: bold;
    }

    .sold-panel {
        margin-top: 30px;
        padding: 20px;
        background: #efe8dc;
        border-left: 5px solid #7b624c;
    }
}
.purchase-complete {
    max-width: 850px;
    margin: 50px auto;
    padding: 25px;
}

.purchase-complete-card {
    text-align: center;
    padding: 45px;
    background: #fffdf8;
    border: 1px solid #d7c29d;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(70, 50, 30, 0.13);
}

.purchase-tick {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #657750;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

.purchase-complete h1 {
    color: #5b3d28;
}

.purchase-complete h2 {
    margin-bottom: 30px;
    color: #6c6258;
    font-size: 1.3rem;
}

.purchase-product-image {
    width: 100%;
    max-width: 350px;
    max-height: 300px;
    margin: 15px auto 25px;
    object-fit: contain;
    border-radius: 8px;
}

.purchase-complete-price {
    color: #435b37;
    font-size: 1.4rem;
    font-weight: bold;
}

.contact-page {
    max-width: 850px;
    margin: 45px auto 70px;
    padding: 20px;
}

.contact-card {
    padding: 40px;
    background: #fffdf8;
    border: 1px solid #d7c29d;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(70, 50, 30, 0.12);
}

    .contact-card h1 {
        color: #5b3d28;
        margin-bottom: 15px;
    }

.contact-intro {
    color: #665f55;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-field {
    margin-bottom: 20px;
}

    .contact-field label {
        display: block;
        margin-bottom: 6px;
        color: #4e3828;
        font-weight: 600;
    }

    .contact-field textarea {
        resize: vertical;
    }

.contact-success {
    margin-bottom: 25px;
    padding: 15px;
    background: #e8f0df;
    border-left: 5px solid #657750;
    color: #43533a;
}

.stall-sold {
    display: block;
    margin: 12px 0 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #7a5c3e;
    font-style: italic;
}

.left-stall-link {
    text-align: center;
    margin: 50px 0 20px;
    padding: 25px;
}

    .left-stall-link p {
        margin-bottom: 18px;
        font-size: 1.1rem;
    }

.care-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.care-heading {
    text-align: center;
    margin-bottom: 40px;
}

    .care-heading h1 {
        margin-bottom: 15px;
    }

    .care-heading p {
        max-width: 700px;
        margin: 0 auto;
        font-size: 1.1rem;
        line-height: 1.7;
    }

.care-content {
    display: grid;
    gap: 25px;
}

.care-section {
    padding: 25px 30px;
    border-radius: 8px;
}

    .care-section h2 {
        margin-bottom: 12px;
    }

    .care-section p {
        line-height: 1.7;
    }

    .care-section:last-child {
        text-align: center;
    }
.delivery-options {
    margin: 24px 0;
}

    .delivery-options h4 {
        margin-bottom: 15px;
    }

.delivery-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #cdbb98;
    border-radius: 8px;
    cursor: pointer;
}

    .delivery-option:hover {
        background-color: rgba(126, 104, 71, 0.08);
    }

    .delivery-option:has(input:checked) {
        border-color: #667a50;
        background-color: rgba(102, 122, 80, 0.12);
    }

    .delivery-option input {
        width: 18px;
        height: 18px;
    }

    .delivery-option span {
        display: flex;
        flex-direction: column;
    }

    .delivery-option small {
        margin-top: 4px;
    }

.purchase-summary {
    max-width: 460px;
    margin: 22px auto;
    padding: 18px;
    border-top: 1px solid #cdbb98;
    border-bottom: 1px solid #cdbb98;
}

    .purchase-summary > div {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        margin: 8px 0;
    }

.purchase-total {
    padding-top: 10px;
    font-size: 1.15rem;
    border-top: 1px solid #cdbb98;
}

.delivery-message {
    margin: 14px 0;
    font-style: italic;
}

@media (max-width: 500px) {
    .delivery-option {
        grid-template-columns: auto 1fr;
    }

        .delivery-option > strong {
            grid-column: 2;
        }

    .cookie-consent {
        position: fixed;
        z-index: 10000;
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: 900px;
        margin: 0 auto;
        padding: 22px 24px;
        color: #40352b;
        background: #fffbed;
        border: 1px solid rgba(103, 78, 51, 0.2);
        border-radius: 6px;
        box-shadow: 0 10px 35px rgba(42, 31, 20, 0.24);
    }

        .cookie-consent[hidden] {
            display: none;
        }

    .cookie-consent__content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
    }

    .cookie-consent__text {
        flex: 1;
    }

        .cookie-consent__text h2 {
            margin: 0 0 8px;
            color: #392d22;
            font-size: 1.25rem;
        }

        .cookie-consent__text p {
            margin: 0;
            color: #665749;
            line-height: 1.55;
        }

    .cookie-consent__actions {
        display: flex;
        flex-shrink: 0;
        gap: 10px;
    }

    .cookie-consent__button {
        min-height: 42px;
        padding: 9px 16px;
        border-radius: 4px;
        border: 1px solid #806543;
        font-weight: 600;
        cursor: pointer;
    }

    .cookie-consent__button--primary {
        color: #ffffff;
        background: #735735;
    }

        .cookie-consent__button--primary:hover {
            background: #5e462a;
        }

    .cookie-consent__button--secondary {
        color: #5b4630;
        background: transparent;
    }

        .cookie-consent__button--secondary:hover {
            background: rgba(115, 87, 53, 0.08);
        }

    .cookie-settings-link {
        padding: 0;
        color: inherit;
        background: none;
        border: 0;
        font: inherit;
        text-decoration: underline;
        cursor: pointer;
    }

    /* =========================================
   COOKIE CONSENT
   ========================================= */

    .cookie-consent {
        position: fixed !important;
        z-index: 10000;
        left: 20px;
        right: 20px;
        bottom: 20px;
        width: auto;
        max-width: 850px;
        margin: 0 auto;
        padding: 22px 24px;
        background: #fffbed;
        border: 1px solid rgba(103, 78, 51, 0.20);
        border-radius: 8px;
        box-shadow: 0 10px 35px rgba(42, 31, 20, 0.24);
        color: #40352b;
    }

        .cookie-consent[hidden] {
            display: none !important;
        }

    .cookie-consent__content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
    }

    .cookie-consent__text {
        flex: 1;
        min-width: 0;
    }

        .cookie-consent__text h2 {
            margin: 0 0 7px !important;
            color: #392d22;
            font-size: 1.25rem !important;
            line-height: 1.25 !important;
            font-weight: 700;
        }

        .cookie-consent__text p {
            margin: 0 !important;
            color: #665749;
            font-size: 0.95rem;
            line-height: 1.5;
        }

    .cookie-consent__actions {
        display: flex;
        flex-shrink: 0;
        gap: 10px;
    }

    .cookie-consent__button {
        display: inline-block;
        width: auto !important;
        min-width: 0 !important;
        min-height: 40px;
        margin: 0 !important;
        padding: 8px 15px !important;
        border: 1px solid #735735 !important;
        border-radius: 4px;
        font-family: inherit;
        font-size: 0.9rem !important;
        font-weight: 600;
        line-height: 1.2;
        cursor: pointer;
    }

    .cookie-consent__button--primary {
        color: #ffffff !important;
        background: #735735 !important;
    }

        .cookie-consent__button--primary:hover {
            background: #5e462a !important;
        }

    .cookie-consent__button--secondary {
        color: #5b4630 !important;
        background: transparent !important;
    }

        .cookie-consent__button--secondary:hover {
            background: rgba(115, 87, 53, 0.08) !important;
        }


    /* Footer Cookie Settings should look like a text link */

    footer .cookie-settings-link {
        display: inline !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #6c757d !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-family: inherit;
        font-size: inherit !important;
        font-weight: inherit;
        line-height: inherit;
        text-decoration: underline;
        cursor: pointer;
    }

        footer .cookie-settings-link:hover {
            color: #343a40 !important;
        }


    /* Mobile */

    @media (max-width: 700px) {

        .cookie-consent {
            left: 10px;
            right: 10px;
            bottom: 10px;
            padding: 18px;
        }

        .cookie-consent__content {
            display: block;
        }

        .cookie-consent__actions {
            display: grid;
            grid-template-columns: 1fr;
            margin-top: 16px;
        }

        .cookie-consent__button {
            width: 100% !important;
        }
    }

    .photo-note {
        margin-top: 1rem;
        padding: 0.8rem 1rem;
        background-color: #f7f3ed;
        border-left: 4px solid #8b6b47;
        border-radius: 6px;
        font-size: 0.9rem;
        color: #555;
    }

        .photo-note p {
            margin: 0.25rem 0 0;
        }

        .photo-note strong {
            color: #5d4630;
        }

}