/* =========================================================
   OLIVIA'S CROCHET CREATIONS
   Boutique Storefront Styling
   ========================================================= */


/* -------------------------
   GLOBAL
------------------------- */

:root {
    --cream: #fbf8f4;
    --cream-dark: #f4ece5;
    --blush: #e8d2c5;
    --rose: #c89f8a;
    --rose-dark: #a97964;
    --brown: #5a4037;
    --brown-soft: #755d54;
    --green: #55745d;
    --white: #ffffff;
    --text: #332d2a;
    --muted: #746a65;
    --border: #eadfd8;
    --shadow-soft: 0 8px 30px rgba(75, 55, 45, 0.08);
    --shadow-card: 0 12px 35px rgba(75, 55, 45, 0.10);
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: var(--cream);
    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    line-height: 1.6;
}


img {
    max-width: 100%;
}


a {
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* -------------------------
   HEADER
------------------------- */

.site-header {
    background:
        linear-gradient(
            135deg,
            #c99c86 0%,
            #b98770 100%
        );

    color: white;

    padding: 30px 20px 26px;

    text-align: center;
}


.brand-wrap {
    max-width: 1100px;

    margin: 0 auto;
}


.brand-name {
    color: white;

    text-decoration: none;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(2rem, 4vw, 3rem);

    line-height: 1.1;

    letter-spacing: -0.5px;
}


.brand-tagline {
    margin: 10px 0 0;

    font-size: 0.95rem;

    letter-spacing: 1.4px;

    text-transform: uppercase;

    opacity: 0.92;
}


/* -------------------------
   NAVIGATION
------------------------- */

.main-nav {
    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(255, 250, 246, 0.97);

    border-bottom:
        1px solid var(--border);

    box-shadow:
        0 4px 18px
        rgba(70, 50, 40, 0.06);

    backdrop-filter:
        blur(10px);
}


.nav-inner {
    max-width: 1100px;

    margin: 0 auto;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;
}


.nav-inner a {
    position: relative;

    color: var(--brown);

    text-decoration: none;

    font-weight: 650;

    font-size: 0.95rem;

    padding: 16px 15px;
}


.nav-inner a:hover {
    color: var(--rose-dark);
}


.nav-inner a::after {
    content: "";

    position: absolute;

    left: 15px;

    right: 15px;

    bottom: 10px;

    height: 2px;

    background: var(--rose);

    transform: scaleX(0);

    transition:
        transform 0.2s ease;
}


.nav-inner a:hover::after {
    transform: scaleX(1);
}


.cart-link {
    display: flex;

    align-items: center;

    gap: 7px;
}


.cart-count {
    min-width: 23px;

    height: 23px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 6px;

    color: white;

    background: var(--rose-dark);

    font-size: 0.75rem;

    border-radius: 999px;
}


/* -------------------------
   HERO
------------------------- */

.hero-banner {
    min-height: 540px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    padding: 60px 20px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 255, 255, 0.28) 0%,
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(255, 245, 238, 0.30) 0%,
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #d8b19d 0%,
            #c99178 48%,
            #b97862 100%
        );
}


.hero-overlay {
    width: 100%;

    max-width: 790px;

    padding:
        clamp(32px, 6vw, 58px);

    text-align: center;

    background:
        rgba(255, 252, 249, 0.94);

    border:
        1px solid
        rgba(255, 255, 255, 0.80);

    border-radius: 24px;

    box-shadow:
        0 25px 65px
        rgba(54, 40, 34, 0.20);

    backdrop-filter:
        blur(7px);
}


.hero-eyebrow,
.section-eyebrow {
    margin: 0 0 12px;

    color: var(--rose-dark);

    font-size: 0.76rem;

    font-weight: 800;

    letter-spacing: 2.1px;

    text-transform: uppercase;
}


.hero-overlay h1 {
    max-width: 680px;

    margin:
        0 auto 20px;

    color: var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            2.4rem,
            5vw,
            4.25rem
        );

    font-weight: 500;

    line-height: 1.06;

    letter-spacing: -1.8px;
}


.hero-copy {
    max-width: 610px;

    margin: 0 auto;

    color: var(--brown-soft);

    font-size: 1.08rem;

    line-height: 1.8;
}


.hero-actions {
    margin-top: 30px;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;
}


/* -------------------------
   BUTTONS
------------------------- */

.primary-button,
.buy-button {
    display: inline-block;

    border: 0;

    padding: 12px 22px;

    color: white;

    background: var(--rose-dark);

    text-decoration: none;

    font-weight: 700;

    font-size: 0.94rem;

    border-radius: 999px;

    box-shadow:
        0 6px 16px
        rgba(169, 121, 100, 0.22);
}


.primary-button:hover,
.buy-button:hover {
    color: white;

    background: #92634f;

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 22px
        rgba(169, 121, 100, 0.28);
}


.secondary-button {
    display: inline-block;

    padding: 11px 21px;

    color: var(--brown);

    background: transparent;

    text-decoration: none;

    font-weight: 700;

    border:
        1px solid #cdb8ad;

    border-radius: 999px;
}


.secondary-button:hover {
    background:
        var(--cream-dark);

    transform:
        translateY(-2px);
}


/* -------------------------
   INTRO
------------------------- */

.intro-section {
    max-width: 1100px;

    margin: 0 auto;

    padding:
        90px 24px 70px;

    text-align: center;
}


.intro-section h2,
.collection-heading h2,
.story-callout h2 {
    margin:
        0 0 18px;

    color: var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(2rem, 4vw, 3rem);

    font-weight: 500;
}


.section-intro {
    max-width: 720px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 1.05rem;

    line-height: 1.85;
}


/* -------------------------
   FEATURE CARDS
------------------------- */

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    margin-top: 45px;
}


.feature-card {
    padding: 32px 24px;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 20px;

    box-shadow:
        var(--shadow-soft);
}


.feature-icon {
    width: 50px;

    height: 50px;

    margin:
        0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        var(--cream-dark);

    border-radius: 50%;

    font-size: 1.45rem;
}


.feature-card h3 {
    margin:
        0 0 10px;

    color: var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.25rem;
}


.feature-card p {
    margin: 0;

    color: var(--muted);

    font-size: 0.95rem;
}


/* -------------------------
   COLLECTION
------------------------- */

.collection-section {
    padding:
        80px 24px 90px;

    background: #f5eee8;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}


.collection-heading {
    max-width: 700px;

    margin:
        0 auto 42px;

    text-align: center;
}


.collection-heading p:last-child {
    color: var(--muted);
}


.products {
    max-width: 1180px;

    margin: 0 auto;

    padding: 0;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(245px, 1fr)
        );

    gap: 26px;
}


/* -------------------------
   PRODUCT CARDS
------------------------- */

.card {
    min-width: 0;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 22px;

    box-shadow:
        var(--shadow-soft);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.card:hover {
    transform:
        translateY(-5px);

    box-shadow:
        var(--shadow-card);
}


.product-image-wrapper {
    position: relative;

    background: #f2ebe6;

    overflow: hidden;
}


.card img {
    width: 100%;

    height: 285px;

    display: block;

    object-fit: cover;

    margin: 0;

    border-radius: 0;

    transition:
        transform 0.35s ease;
}


.card:hover img {
    transform:
        scale(1.025);
}


.card-content {
    flex: 1;

    padding: 22px;

    display: flex;

    flex-direction: column;
}


.card h3 {
    margin:
        0 0 10px;

    color: var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.24rem;

    line-height: 1.35;
}


.card-description {
    flex: 1;

    margin:
        0 0 18px;

    color: var(--muted);

    font-size: 0.94rem;

    line-height: 1.65;
}


.card-footer {
    padding-top: 16px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    border-top:
        1px solid #eee5df;
}


.price {
    margin: 0;

    color: var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.35rem;

    font-weight: 700;
}


.product-button {
    margin: 0;

    padding: 9px 16px;

    font-size: 0.86rem;
}


/* -------------------------
   AVAILABLE / SOLD BADGES
------------------------- */

.available-badge,
.sold-badge {
    position: absolute;

    top: 14px;

    right: 14px;

    padding: 7px 13px;

    border-radius: 999px;

    font-size: 0.73rem;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

    box-shadow:
        0 4px 12px
        rgba(0,0,0,0.15);
}


.available-badge {
    color: white;

    background: var(--green);
}


.sold-badge {
    color: white;

    background: #716b67;
}


.sold-card {
    background: #f7f5f3;
}


.sold-card img {
    opacity: 0.68;

    filter:
        saturate(0.75);
}


.sold-button {
    display: inline-block;

    padding: 9px 17px;

    color: #6d6864;

    background: #e5e1de;

    border-radius: 999px;

    font-size: 0.85rem;

    font-weight: 750;
}


.sold-button-large {
    font-size: 1.05rem;
}


.sold-badge-large {
    font-size: 0.82rem;

    padding: 9px 16px;
}


/* -------------------------
   STORY CALLOUT
------------------------- */

.story-callout {
    padding: 90px 24px;
}


.story-callout-content {
    max-width: 820px;

    margin: 0 auto;

    padding: 55px 45px;

    text-align: center;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 26px;

    box-shadow:
        var(--shadow-soft);
}


.story-callout-content p:not(.section-eyebrow) {
    max-width: 650px;

    margin:
        0 auto 26px;

    color: var(--muted);

    font-size: 1.04rem;

    line-height: 1.8;
}


/* -------------------------
   PRODUCT DETAIL
------------------------- */

.content-page {
    max-width: 1000px;

    margin:
        45px auto;

    padding:
        0 22px 60px;

    line-height: 1.7;
}


.content-page h1,
.content-page h2 {
    color: var(--brown);
}


.product-detail-card {
    max-width: 1000px;

    margin:
        30px auto;

    padding: 36px;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 45px;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 24px;

    box-shadow:
        var(--shadow-card);
}


.product-detail-card
.product-image-wrapper {
    flex: 1;

    min-width: 280px;

    border-radius: 18px;
}


.product-detail-image {
    width: 100%;

    max-width: 450px;

    display: block;

    border-radius: 18px;
}


.product-detail-info {
    flex: 1;

    min-width: 280px;
}


.product-detail-info h1 {
    margin-top: 0;

    color: var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(2rem, 4vw, 2.8rem);
}


.product-description {
    color: var(--muted);

    font-size: 1.03rem;

    line-height: 1.8;
}


.availability {
    display: inline-block;

    padding: 6px 11px;

    border-radius: 999px;

    font-size: 0.82rem;

    font-weight: 750;
}


.available-status {
    color: #356346;

    background: #e7f0e9;
}


.sold-status {
    color: #7b5548;

    background: #f3e7e1;
}


/* -------------------------
   EMPTY COLLECTION
------------------------- */

.empty-collection {
    grid-column:
        1 / -1;

    padding:
        60px 20px;

    text-align: center;

    color: var(--muted);
}


/* -------------------------
   FOOTER
------------------------- */

.site-footer {
    margin-top: 0;

    color: #efe8e3;

    background: #493730;
}


.footer-inner {
    max-width: 1080px;

    margin: 0 auto;

    padding:
        48px 24px 35px;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 40px;
}


.footer-inner h3 {
    margin:
        0 0 10px;

    color: white;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.35rem;
}


.footer-inner p {
    max-width: 430px;

    margin: 0;

    color: #d6c9c2;

    font-size: 0.92rem;
}


.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 20px;
}


.footer-links a {
    color: #eee3dc;

    text-decoration: none;

    font-size: 0.9rem;
}


.footer-links a:hover {
    color: white;
}


.footer-bottom {
    padding: 18px 20px;

    text-align: center;

    color: #bdaea6;

    font-size: 0.82rem;

    border-top:
        1px solid
        rgba(255,255,255,0.08);
}


/* -------------------------
   LEGACY FOOTER FALLBACK
------------------------- */

.footer {
    padding: 24px;

    margin-top: 20px;

    text-align: center;

    background: #493730;

    color: white;
}


/* -------------------------
   RESPONSIVE
------------------------- */

@media (max-width: 850px) {

    .feature-grid {
        grid-template-columns: 1fr;

        max-width: 560px;

        margin-left: auto;

        margin-right: auto;
    }


    .footer-inner {
        flex-direction: column;
    }

}


@media (max-width: 680px) {

    .site-header {
        padding:
            24px 15px 20px;
    }


    .brand-tagline {
        font-size: 0.72rem;
    }


    .nav-inner {
        overflow-x: auto;

        justify-content: flex-start;

        padding: 0 8px;
    }


    .nav-inner a {
        flex: 0 0 auto;

        padding:
            14px 10px;

        font-size: 0.88rem;
    }


    .hero-banner {
        min-height: 500px;

        padding:
            35px 15px;
    }


    .hero-overlay {
        padding:
            32px 22px;
    }


    .hero-overlay h1 {
        font-size: 2.55rem;
    }


    .hero-actions {
        flex-direction: column;
    }


    .hero-actions a {
        width: 100%;
    }


    .intro-section,
    .collection-section,
    .story-callout {
        padding-left: 17px;

        padding-right: 17px;
    }


    .products {
        grid-template-columns: 1fr;
    }


    .card {
        max-width: 430px;

        width: 100%;

        margin: 0 auto;
    }


    .product-detail-card {
        padding: 22px;

        gap: 25px;
    }


    .story-callout-content {
        padding:
            38px 22px;
    }


    .card-footer {
        align-items: flex-end;
    }

}

/* =========================================================
   PRODUCT IMAGE DISPLAY IMPROVEMENTS
   Full-image presentation without cropping
   ========================================================= */


/* ---------------------------------------------------------
   COLLECTION / HOME PRODUCT IMAGES
   --------------------------------------------------------- */

.collection-section .product-image-wrapper {
    position: relative;

    width: 100%;

    height: 365px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 12px;

    overflow: hidden;

    background: #f2ebe6;
}


.collection-section .collection-product-image {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    object-position: center center;

    margin: 0;

    padding: 0;

    border-radius: 12px;

    transition:
        transform 0.35s ease;
}


.collection-section .card:hover
.collection-product-image {
    transform: scale(1.015);
}


/* Override the older generic .card img crop rule. */

.collection-section .card img {
    height: 100%;

    object-fit: contain;

    object-position: center center;
}


/* ---------------------------------------------------------
   SHOPPING CART
   --------------------------------------------------------- */

.cart-page {
    max-width: 1180px;
}


.cart-heading {
    margin-bottom: 34px;

    text-align: center;
}


.cart-heading h1 {
    margin: 0;

    color: var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            2rem,
            4vw,
            2.8rem
        );

    font-weight: 600;
}


.cart-items {
    display: flex;

    flex-direction: column;

    gap: 28px;
}


.cart-item-card {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(300px, 44%)
        minmax(0, 1fr);

    overflow: hidden;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 24px;

    box-shadow:
        var(--shadow-card);
}


.cart-image-wrapper {
    min-height: 480px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 18px;

    overflow: hidden;

    background: #f2ebe6;
}


.cart-product-image {
    width: 100%;

    height: 100%;

    max-height: 500px;

    display: block;

    object-fit: contain;

    object-position: center center;

    border-radius: 16px;
}


.cart-item-content {
    min-width: 0;

    padding:
        42px 38px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.cart-product-name {
    margin:
        0 0 18px;

    color: var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            1.5rem,
            2.7vw,
            2rem
        );

    line-height: 1.3;
}


.cart-description {
    margin:
        0 0 25px;

    color: var(--muted);

    font-size: 1rem;

    line-height: 1.8;
}


.cart-price {
    margin:
        0 0 22px;

    color: var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.65rem;

    font-weight: 700;
}


.cart-remove-button {
    width: 100%;

    text-align: center;
}


.cart-summary {
    max-width: 760px;

    margin:
        38px auto 20px;

    padding:
        34px 32px;

    text-align: center;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 22px;

    box-shadow:
        var(--shadow-soft);
}


.cart-summary h2 {
    margin:
        0 0 8px;

    color: var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.8rem;
}


.cart-shipping-note {
    margin:
        0 0 25px;

    color: var(--muted);

    font-size: 0.96rem;
}


.cart-actions {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;
}


.cart-action-button {
    min-width: 150px;

    text-align: center;
}


.empty-cart {
    max-width: 700px;

    margin:
        50px auto;

    padding:
        48px 30px;

    text-align: center;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 22px;

    box-shadow:
        var(--shadow-soft);
}


.empty-cart h2 {
    margin-top: 0;

    color: var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 850px) {

    .collection-section .product-image-wrapper {
        height: 410px;
    }


    .cart-item-card {
        grid-template-columns:
            minmax(260px, 42%)
            minmax(0, 1fr);
    }


    .cart-image-wrapper {
        min-height: 410px;
    }


    .cart-item-content {
        padding:
            32px 27px;
    }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 680px) {

    .collection-section .product-image-wrapper {
        height: 430px;

        padding: 10px;
    }


    .collection-section .collection-product-image {
        object-fit: contain;

        object-position: center center;
    }


    .cart-item-card {
        display: block;
    }


    .cart-image-wrapper {
        width: 100%;

        min-height: 0;

        height: 460px;

        padding: 12px;
    }


    .cart-product-image {
        width: 100%;

        height: 100%;

        max-height: none;

        object-fit: contain;

        object-position: center center;
    }


    .cart-item-content {
        padding:
            26px 22px 28px;
    }


    .cart-product-name {
        font-size: 1.5rem;
    }


    .cart-description {
        font-size: 0.96rem;
    }


    .cart-summary {
        padding:
            28px 20px;
    }


    .cart-actions {
        flex-direction: column;
    }


    .cart-action-button {
        width: 100%;
    }

}


/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 430px) {

    .collection-section .product-image-wrapper {
        height: 400px;
    }


    .cart-image-wrapper {
        height: 420px;
    }

}
