/********** Template CSS **********/
:root {
    --primary: #EAA636;
    --secondary: #545454;
    --light: #FDF5EB;
    --dark: #1E1916;
    --pink: #FFB6C1;
    --pink-strong: #FF69B4;
    --pink-dark: #C11C84;
    /* Standardized pink light opacity to 75% */
    --pink-light: rgba(255, 182, 193, 0.75);
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
    font-weight: 600 !important;
}

.py-6 {
    padding-top: 0rem;
    padding-bottom: 1rem;
}

.py-7 {
    padding-top: 0rem;
    padding-bottom: 0rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Header Code Pink ***/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    /* Unified header gradient opacity to 75% */
    background: linear-gradient(rgba(255, 105, 180, 0.75), rgba(255, 182, 193, 0.75));
    backdrop-filter: blur(4px);
    transition: box-shadow .25s ease, background-color .25s ease, transform .25s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    /* Scrolled state also standardized to 75% */
    background: linear-gradient(rgba(255, 105, 180, 0.75), rgba(255, 182, 193, 0.75));
}

.site-header .top-bar,
.site-header .navbar,
.site-header a,
.site-header h1,
.site-header .nav-link {
    color: #000 !important;
}

.top-bar .breadcrumb-item+.breadcrumb-item::before {
    color: #000;
}

.navbar {
    background: transparent !important;
}

.btn-lg-square {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#cart-count {
    font-size: .75rem;
    padding: 2px 6px;
    vertical-align: top;
}

.cart-sheet.hidden {
    display: none;
}

.cart-sheet {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px;
    border-radius: 6px;
    min-width: 260px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    color: #000;
}

@media (max-width: 992px) {
    .top-bar {
        display: none !important;
    }

    /* Mobile header opacity unified to 75% */
    .site-header {
        background: rgba(255, 182, 193, 0.75);
    }
}

/*** Follow Us Icon ***/
a.follow-us-icon i,
a.follow-us-icon {
    color: var(--pink-dark) !important;
    /* #FF69B4 */
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Top Bar (override to pink) ***/
.top-bar {
    background: rgba(255, 182, 193, 0.75);
    /* strong pink with 75% opacity */
    color: #000;
}

.top-bar a,
.top-bar .breadcrumb-item,
.top-bar .breadcrumb-item a,
.top-bar small,
.top-bar .small {
    color: #000 !important;
}

/*** Navbar (override to light pink) ***/
.navbar {
    background: var(--pink-light) !important;
    color: #000;
}

.navbar .navbar-brand h1,
.navbar .navbar-nav .nav-link {
    color: #000 !important;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #000 !important;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        background: var(--pink-light) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.15);
    }

    .navbar .navbar-nav .nav-link {
        color: #000 !important;
    }
}

/*** Header ***/
.header-carousel .owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .5);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 600px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-nav {
    position: relative;
    width: 80px;
    height: 80px;
    margin: -40px auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-carousel .owl-nav::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transform: rotate(45deg);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    position: relative;
    font-size: 40px;
    color: var(--primary);
    transition: .5s;
    z-index: 1;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.page-header-about {
    margin-bottom: 6rem;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/header-about.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-checkout {
    margin-bottom: 6rem;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/header-checkout.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-contact {
    margin-bottom: 6rem;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/header-contact.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-product {
    margin-bottom: 6rem;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/header-product.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-default {
    margin-bottom: 6rem;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/header-default.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Facts ***/
.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}


/*** About ***/
.img-twice::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    background: var(--primary);
    border: 25px solid var(--light);
    border-radius: 6px;
    z-index: -1;
}


/*** Product ***/
.product-item {
    transition: .5s;
}

.product-item:hover {
    background: var(--primary) !important;
}

.product-item:hover * {
    color: var(--light);
}

.product-item:hover .border-primary {
    border-color: var(--light) !important;
}

.product-item .product-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.product-item:hover .product-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-item .team-text {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light);
    transition: .5s;
}

.team-item:hover .team-title {
    top: -100px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 100px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
}

.team-item:hover .team-social {
    top: 0;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 22px;
    color: var(--light);
    background: var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--primary);
    background: var(--dark);
}


/*** Footer (override to pink) ***/
.footer {
    background: rgba(255, 182, 193, 0.75);
    color: #000;
}

.footer .btn.btn-link,
.footer .btn.btn-link::before {
    color: #000 !important;
}

.footer .btn.btn-link:hover {
    color: #000;
    letter-spacing: 1px;
}

/*** Copyright strip ***/
.copyright {
    background: rgba(255, 182, 193, 0.75) !important;
    color: #000 !important;
}

.copyright a {
    color: #000 !important;
}

.copyright a:hover {
    color: #000 !important;
}

/*** Optional: make all .text-primary black in new theme ***/
.text-primary {
    color: var(--primary) !important;
    /* color: var(--pink-dark) !important; */
}

/* Ensure badges / icons inside pink areas stay visible */
.navbar .fa,
.top-bar .fa,
.footer .fa {
    /* color: #000 !important; */
    color: var(--pink-strong) !important;
    /* #EAA636 */
}

/* Footer */
.btn-lg-square {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

/* Removed previous solid #222 override to retain pink brand footer with 85% opacity */
/* slash between breadcrumb items -> black */
.copyright .breadcrumb-item+.breadcrumb-item::before {
    color: #000 !important;
}

/* horizontal rule -> black */
.copyright hr {
    border: 0;
    height: 1px;
    background: #000;
    opacity: 1;
    margin-top: .5rem;
    margin-bottom: .5rem;
}

@media (max-width: 576px) {
    .col-6.text-center {
        width: 100%;
    }
}

/* ==========================================================
     MERGED STYLES FROM ./styles.css (product grid & cards)
     Original file removed for consolidation. Adjusted to avoid
     conflicts with existing header/cart styles.
     Skipped: global resets (*, html, body) and generic header selector.
     ========================================================== */

/* Responsive product grid */
.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width:640px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Product card container */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform .12s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
}

/* Media wrapper */
.media {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(180deg, #fff8f0, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Card content */
.content {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1 1 auto;
}

.product-card h2 {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
}

.product-card p.description {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Future standard property */
    line-clamp: 3;
}


/* Price & actions */
.price-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    white-space: nowrap;
}

/* Quantity controls */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #cbd5e1;
    background: white;
    color: #475569;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.qty-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.qty-btn:active:not(:disabled) {
    background: #e2e8f0;
    transform: scale(0.95);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 45px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    padding: 0;
    flex-shrink: 0;
}

.qty-input:focus {
    outline: none;
    border-color: #FF69B4;
    box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.1);
}

.qty-input:disabled {
    background: #f1f5f9;
    opacity: 0.6;
}

/* Remove spinner arrows from number input */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* Add to cart button (retained gradient) */
button.add-to-cart {
    border: none;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    color: #fff;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.12);
}

button.add-to-cart[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* Inventory badge */
.badge-inventory {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #b91c1c;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-available {
    background: #22c55e;
    color: #ffffff;
    border-color: #16a34a;
}

.badge-limited {
    background: #fbbf24;
    color: #78350f;
    border-color: #f59e0b;
}

.badge-out {
    background: #ef4444;
    color: #ffffff;
    border-color: #dc2626;
}

.badge-low {
    background: linear-gradient(90deg, #fff1f0, #fff);
    color: #9b1c1c;
}

/* Collection badges */
.collections-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
    max-width: calc(100% - 20px);
}

.badge-collection {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.7rem;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

/* Local cart sheet (shared styling already exists; extending) */
.cart-sheet {
    max-width: 980px;
    margin: 1rem auto;
}

.cart-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.04);
}

.cart-item img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
}

.qty {
    margin-left: auto;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.qty button {
    border: none;
    background: transparent;
    padding: 0.2rem 0.5rem;
    font-weight: 700;
    cursor: pointer;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.checkout-btn {
    background: linear-gradient(90deg, #10b981, #059669);
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: none;
    font-weight: 800;
    cursor: pointer;
}

.center {
    text-align: center;
}

/* Product Loader */
.product-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.product-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

.product-loader p {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

.product-loader.hidden {
    display: none;
}

/* Sort Controls */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sort-controls.hidden {
    display: none;
}

.sort-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    color: #334155;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 150px;
}

.sort-select:hover {
    border-color: #94a3b8;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234, 166, 54, 0.1);
}

.btn-reset {
    padding: 0.5rem 1rem;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-reset:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-reset:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .sort-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-select,
    .btn-reset {
        width: 100%;
    }
}

/* END merged styles */

/* ==========================================================
   Mobile Sticky Cart Bar (Product Page)
   ========================================================== */
.mobile-cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 105, 180, 0.95), rgba(255, 182, 193, 0.95));
    backdrop-filter: blur(6px);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .25);
    z-index: 1200;
    font-size: .9rem;
    transform: translateY(100%);
    transition: transform .35s ease;
}

.mobile-cart-bar.show {
    transform: translateY(0);
}

.mobile-cart-bar .cart-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-weight: 600;
}

.mobile-cart-bar button.checkout-mini {
    background: linear-gradient(90deg, #10b981, #059669);
    color: #fff;
    border: none;
    font-weight: 700;
    padding: .6rem .9rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, .35);
}

.mobile-cart-bar button.checkout-mini:active {
    transform: scale(.97);
}

/* Utility hidden class (global) */
.hidden {
    display: none !important;
}

@media (min-width: 992px) {
    .mobile-cart-bar {
        display: none !important;
    }
}