/* =========================================================
   COTTON TABLE COVERS PAGE
   Purple Leaf Creation
   ========================================================= */

/* =========================================================
   PAGE
   ========================================================= */

.ctc-page {
    min-height: 100vh;
    background: #f8f8f8;
}

.ctc-page a {
    transition: all 0.3s ease;
}

.text-purple {
    color: #7b2d8e !important;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */

.ctc-breadcrumb {
    font-size: 14px;
}

.ctc-breadcrumb .breadcrumb {
    display: flex;
    align-items: center;
}

.ctc-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #999;
}

.ctc-breadcrumb a:hover {
    color: #7b2d8e !important;
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.ctc-hero {
    position: relative;
    min-height: 520px;

    background-image: url("/images/cotton-table-cover.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    overflow: hidden;
}

.ctc-hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(90deg, rgba(35, 10, 42, 0.88) 0%, rgba(66, 20, 78, 0.68) 45%, rgba(0, 0, 0, 0.15) 100%);
}

.ctc-hero-content {
    position: relative;
    z-index: 2;

    padding-top: 80px;
    padding-bottom: 80px;
}

.ctc-hero-content h1 {
    max-width: 760px;

    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.12;

    letter-spacing: -0.5px;
}

.ctc-hero-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.ctc-hero-content .badge {
    letter-spacing: 1.5px;
    font-size: 11px;
}

.ctc-hero-content .btn {
    border-radius: 3px;
    padding: 12px 25px !important;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ctc-hero-content .btn:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   INTRODUCTION
   ========================================================= */

.ctc-intro {
    background: #fff;
}

.ctc-intro h2 {
    color: #222;
}

.ctc-intro p {
    font-size: 15px;
}

/* =========================================================
   PRODUCTS SECTION
   ========================================================= */

.ctc-products {
    background: #f8f8f8;
}

.ctc-products h2 {
    color: #222;
}

.ctc-products .form-select {
    cursor: pointer;
}

.ctc-products .form-select:focus {
    box-shadow: none;
}

.ctc-products .vr {
    height: 25px;
    opacity: 0.2;
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */

#ctcGrid {
    position: relative;
}

.ctc-product-wrapper {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Hidden state before animation */

.ctc-product-hidden {
    opacity: 0;
    transform: translateY(25px);
}

/* Visible state */

.ctc-product-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   PRODUCT CARD HOVER
   ========================================================= */

.ctc-product-wrapper .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ctc-product-wrapper:hover .product-card {
    transform: translateY(-5px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   FEATURES
   ========================================================= */

.ctc-features {
    background: #fff;
}

.ctc-feature-card {
    height: 100%;

    padding: 25px 15px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ctc-feature-card:hover {
    transform: translateY(-5px);
}

.ctc-feature-card i {
    transition: transform 0.3s ease;
}

.ctc-feature-card:hover i {
    transform: scale(1.08);
}

.ctc-feature-card h6 {
    color: #222;
    margin-bottom: 8px;
}

.ctc-feature-card p {
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   PROMOTIONAL BANNER
   ========================================================= */

.ctc-promo {
    background: #f8f8f8;
}

.ctc-promo-box {
    min-height: 280px;

    display: flex;
    align-items: center;

    position: relative;
}

.ctc-promo-box h2 {
    font-size: 2rem;
}

.ctc-promo-box p {
    line-height: 1.7;
}

.ctc-promo-box .btn {
    border-radius: 3px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ctc-promo-box .btn:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */

#ctcBackToTop {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: #7b2d8e;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;

    z-index: 999;
}

#ctcBackToTop.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

#ctcBackToTop:hover {
    background: #642274;
}

/* =========================================================
   EMPTY PRODUCTS STATE
   ========================================================= */

.ctc-products .bi-box-seam {
    opacity: 0.5;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {
    .ctc-hero {
        min-height: 470px;
    }

    .ctc-hero-content {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .ctc-hero-content h1 {
        font-size: 2.6rem;
    }

    .ctc-products .d-flex.align-items-center.gap-3 {
        width: 100%;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .ctc-breadcrumb {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .ctc-hero {
        min-height: 500px;

        background-position: center;
    }

    .ctc-hero-overlay {
        background: linear-gradient(180deg, rgba(35, 10, 42, 0.55) 0%, rgba(35, 10, 42, 0.9) 100%);
    }

    .ctc-hero-content {
        padding: 70px 20px;
    }

    .ctc-hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.18;
    }

    .ctc-hero-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .ctc-hero-content .btn {
        width: 100%;
    }

    /* Introduction */

    .ctc-intro {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .ctc-intro h2 {
        font-size: 1.5rem;
    }

    .ctc-intro p {
        font-size: 14px;
    }

    /* Products */

    .ctc-products {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .ctc-products h2 {
        font-size: 1.35rem;
    }

    .ctc-products .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        align-items: stretch !important;

        gap: 10px !important;

        padding: 12px !important;
    }

    .ctc-products .vr {
        display: none;
    }

    .ctc-products select {
        width: 100% !important;
    }

    /* Features */

    .ctc-feature-card {
        padding: 20px 10px;
    }

    .ctc-feature-card i {
        font-size: 2rem !important;
    }

    /* Promo */

    .ctc-promo {
        padding-top: 35px !important;
        padding-bottom: 35px !important;
    }

    .ctc-promo-box {
        min-height: 350px;
    }

    .ctc-promo-box h2 {
        font-size: 1.6rem;
    }

    .ctc-promo-box p {
        font-size: 14px;
    }

    .ctc-promo-box .btn {
        width: 100%;
    }

    /* Back to top */

    #ctcBackToTop {
        right: 15px;
        bottom: 15px;

        width: 42px;
        height: 42px;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
    .ctc-hero {
        min-height: 460px;
    }

    .ctc-hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .ctc-hero-content h1 {
        font-size: 2rem;
    }

    .ctc-hero-content p {
        font-size: 0.9rem;
    }

    .ctc-products .row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 1rem;
    }

    .ctc-feature-card {
        padding: 15px 5px;
    }
}
