/* =======================================
   Global Styles & Variables
   ======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
:root {
    --primary-color: #d4626a;
    --secondary-color: #f8b5a5;
    --dark-color: #1c1b1b;
    --light-color: #f5f5f5;
    --text-color: #333;
    --text-subdued: #666;
    --border-color: #e0e0e0;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);

    --primary-color: #C8A8DA;        
    --secondary-color: #EDB5D2;      
    --tertiary-color: #EAD2DF;       
    --accent-color: #FFF5C0;         
    --light-color: #FFF5E9;          
    --dark-color: #1c1b1b;           
    --text-color: #333;              
    --text-subdued: #666;
    --border-color: #EAD2DF;         
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}*/

:root {
    --primary-color: #d4626a;
    /* Soft purple - main brand color */
    --secondary-color: #EDB5D2;
    /* Pink - accent color */
    --tertiary-color: #EAD2DF;
    /* Light pink - backgrounds */
    --accent-color: #FFF5C0;
    /* Soft yellow - highlights */
    --light-color: #FFF5E9;
    /* Cream - light backgrounds */
    --dark-color: #1c1b1b;
    /* Keep dark text */
    --text-color: #333;
    /* Keep text readable */
    --text-subdued: #666;
    --border-color: #EAD2DF;
    /* Use light pink for borders */
    --testimonial_color: #764ba2;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.template-index {
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =======================================
   Header Styles
   ======================================= */


.header--sticky {
    position: sticky;
}

.header__wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__flex-item {
    flex: 1;
    display: flex;
    align-items: center;
}

.header__flex-item--left {
    justify-content: flex-start;
}

.header__flex-item--logo {
    flex: 0 0 auto;
    justify-content: center;
}

.header__flex-item--right {
    justify-content: flex-end;
}

.header__logo h1 {
    margin: 0;
}

.header__logo-link {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.header__main-nav {
    display: flex;
    align-items: center;
}

.horizontal-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.horizontal-list__item a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.horizontal-list__item:hover a,
.horizontal-list__item.is-active a {
    color: var(--primary-color);
}

.header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.header__icon:hover {
    color: var(--primary-color);
}

.icon-wrapper--clickable {
    background: none;
    border: none;
    cursor: pointer;
}

.icon {
    width: 20px;
    height: 20px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.linklist {
    list-style: none;
}

.linklist li {
    margin-bottom: 0.8rem;
}

.linklist a {
    text-decoration: none;
    color: var(--text-subdued);
    font-size: 0.9rem;
    transition: var(--transition);
}

.linklist a:hover {
    color: var(--primary-color);
}

/* Mobile Menu */
.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 320px;
    background: white;
    z-index: 9999;
    transform: translateX(-100%);
    transition: var(--transition);
}

.drawer--left {
    left: 0;
}

.drawer.active {
    transform: translateX(0);
}

.drawer__header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.drawer__close {
    background: none;
    border: none;
    cursor: pointer;
}

.drawer__content {
    padding: 2rem;
}

.sidebar-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.collapsible__button {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =======================================
   Slideshow Section (Flickity-compatible, no gaps)
   ======================================= */

.slideshow {
    margin: 0;
    padding: 0;
    position: relative;
}

/* Fullscreen hero height */
.slideshow--fullscreen {
    position: relative;
    height: 100vh;
    /* stable on desktop */
    height: 100dvh;
    /* better on mobile address-bar behavior */
    min-height: 520px;
    overflow: hidden;
    /* prevents any stray overflow creating “bands” */
}

/* Flickity wrappers must inherit height */
.slideshow--fullscreen .slideshow__carousel,
.slideshow--fullscreen .flickity-viewport,
.slideshow--fullscreen .flickity-slider {
    height: 100%;
}

/* Flickity expects cells to be normal-flow, not absolute */
.slideshow--fullscreen .carousel__cell,
.slideshow--fullscreen .slideshow__slide {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Ensure the background image container fills the cell */
.slideshow--fullscreen .slideshow__image-container {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

/* Overlay for readability */
.slideshow__image-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45));
    z-index: 1;
}

/* Content above overlay */
.slideshow__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: rgb(250, 179, 179);
    padding: 2rem;
}

/* Arrow button should not create layout space */
.slideshow__scroll-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    z-index: 10;
}

/* Prevent “white flash”/gap showing between slides */
.slideshow__carousel {
    background: #000;
}

/* Remove visible gap introduced by the next section’s top padding */
.slideshow+.section {
    padding-top: 0;
}

/* Individual slide images */
.slide--cupcakes {
    background-image: url("images/slides/black_frorest.webp");
}

.slide--cakes {
    background-image: url("images/slides/choco_straw.webp");
}

.slide--cakes2 {
    background-image: url("images/slides/marbleshopify.webp");
}

/* =======================================
   Section Styles
   ======================================= */
.section {
    padding: 40px 0;
}

.section--spacing-normal {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header--center {
    text-align: center;
}

.section-header__subheading {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-subdued);
    margin-bottom: 1rem;
}

.section-header__heading {
    font-size: 3rem;
    font-weight: 300;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-header__description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-subdued);
    line-height: 1.8;
}

/* Tab List */
.tab-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
/*
.tab-list__item {
    background: none;
    border: none;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}*/

.tab-list__item.is-active {
    color: var(--primary-color);
}

.tab-list__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.tab-list__item.is-active::after {
    transform: scaleX(1);
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel[aria-hidden="false"] {
    display: block;
}

/* Product Grid */
.product-list--grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-item__wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.product-item__wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-item__image-wrapper {
    display: block;
    text-decoration: none;
}

.aspect-ratio {
    position: relative;
    padding-bottom: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    overflow: hidden;
    background: #f5f5f5;
}



.product-item__info {
    padding: 1.5rem;
    text-align: center;
}

.product-item__title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-item__price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Featured Product */
.featured-product__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-product__gallery {
    display: block;
    text-decoration: none;
}

.product-meta__vendor {
    color: var(--text-subdued);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.product-meta__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-meta__price {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.product-meta__description {
    margin: 2rem 0;
    line-height: 1.8;
    color: var(--text-subdued);
}

.product-form__options {
    margin-bottom: 1.5rem;
}

.product-form__label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.size-swatch-list {
    display: flex;
    gap: 1rem;
}

.size-swatch {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked+.size-swatch {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Timeline */
.timeline-section {
    background: var(--light-color);
}

.timeline__list-item {
    position: relative;
}

.timeline__item {
    display: none;
    padding: 2rem 0;
}

.timeline__item.is-selected {
    display: block;
}

.timeline__image-wrapper {
    width: 400px;
    height: 400px;
    margin: 0 auto 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline__nav {
    margin-top: 3rem;
}

.timeline__nav-wrapper {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.timeline__nav-item {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 1rem 0;
    color: var(--text-subdued);
    font-size: 1.1rem;
    transition: var(--transition);
}

.timeline__nav-item.is-selected {
    color: var(--primary-color);
}

.timeline__nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.timeline__nav-item.is-selected::after {
    opacity: 1;
}

.timeline__nav-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(135deg, #C8A8DA 0%, #EAD2DF 100%);
    color: white;
    text-align: center;
}

.testimonial__content {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial__content p {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial__author {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Map Section */
.featured-map__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.featured-map__store {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 2rem;
}

.featured-map__address,
.featured-map__hours {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-subdued);
}

.featured-map__container {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.featured-map__container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.featured-map__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Page Specific Styles */
.template-page {
    padding-top: var(--header-height, 70px);
}

/* Search Bar */
.search-bar {
    max-width: 600px;
    margin: 2rem auto;
}

.search-bar__form {
    display: flex;
    gap: 1rem;
}

.search-bar__input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-bar__input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Product Grid Enhanced */
.product-list--grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.product-item {
    position: relative;
}

.product-item__wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-item__wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-item__image-wrapper {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
}

.product-item__image-wrapper .aspect-ratio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*
.aspect-ratio img {
    width: 100%;
    height: 100%;
    object-fit: contain; */
/* Changed from cover to contain to show full image */
/*transition: var(--transition);
    background: white;
}
*/
/* ADD THIS NEW CODE */
.aspect-ratio img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback when image fails to load */
.pp-image-fallback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.pp-fallback-icon {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
    display: none;
}

.pp-image-fallback .pp-fallback-icon {
    display: block;
}

.product-item__info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-item__title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.product-item__price-list {
    margin-bottom: 0.5rem;
}

.product-item__price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
}

.product-item__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.button--small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.pp-inline-note {
    font-size: 0.85rem;
    color: var(--text-subdued);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Cart Badge */
.header__cart-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.header__cart-dot:empty {
    display: none;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    z-index: 10000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Responsive Design for Products */
@media (max-width: 1200px) {
    .product-list--grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-list--grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .product-list--grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-item__wrapper {
        display: flex;
        flex-direction: row;
        height: auto;
    }

    .product-item__image-wrapper {
        width: 120px;
        min-width: 120px;
        padding-top: 0;
        height: 120px;
    }

    .product-item__info {
        padding: 1rem;
    }

    .product-item__title {
        font-size: 1rem;
    }

    .product-item__price {
        font-size: 1.1rem;
    }

    .product-item__actions {
        flex-direction: column;
    }

    .button--small {
        width: 100%;
    }

    .search-bar__form {
        flex-direction: column;
    }

    .search-bar__input {
        width: 100%;
    }
}

/* Tab List Enhanced */
.tab-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/*
.tab-list__item {
    background: none;
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}*/


.tab-list__item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-list__item.is-active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Section Enhancements */
.section--tight {
    padding: 40px 0;
}

.section__header {
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.text--subdued {
    color: var(--text-subdued);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Main Content Area */
.main-content {
    min-height: calc(100vh - var(--header-height) - 300px);
}

/* Loading State */
.product-item--loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.footer--center {
    text-align: center;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__title {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.footer__content {
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer__social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.link--primary {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.link--primary:hover {
    color: var(--secondary-color);
}

.footer__aside {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
    opacity: 0.6;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.newsletter-input {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    min-width: 250px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .product-list--grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header__main-nav {
        display: none;
    }

    .hidden-phone {
        display: none;
    }

    .hidden-desk {
        display: block !important;
    }

    .slideshow__heading {
        font-size: 2.5rem;
    }

    .slideshow__subheading {
        font-size: 1rem;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .tab-list {
        flex-direction: column;
        align-items: center;
    }

 /*   .tab-list__item {
        font-size: 1.5rem;
    }*/

    .product-list--grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .featured-product__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline__image-wrapper {
        width: 250px;
        height: 250px;
    }

    .timeline__nav-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .featured-map__content {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .slideshow__heading {
        font-size: 2rem;
    }

    .section-header__heading {
        font-size: 2rem;
    }

    .product-list--grid {
        grid-template-columns: 1fr;
    }

    .header__logo-link {
        font-size: 1.5rem;
    }
}

/* Hidden utilities */
.hidden-mobile {
    display: block;
}

.hidden-desk {
    display: none;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }
}

/* =========================================================
   Passions Pastries: UI additions for Cart / Account / Search
   ========================================================= */

/* Cart badge (used in header) */
.header__cart-dot[data-cart-badge] {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    color: #fff;
    background: #111;
    position: absolute;
    top: -6px;
    right: -6px;
}

/* Small button helper */
.button--small {
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Product actions */
.product-item__actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* Search input */
.search-bar__form {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.search-bar__input {
    width: min(720px, 100%);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.8);
}

/* Minimal cards for account pages */
.pp-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.pp-auth-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    margin-top: 18px;
}

@media (min-width: 860px) {
    .pp-auth-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pp-label {
    display: block;
    margin-top: 10px;
    margin-bottom: 6px;
    font-weight: 500;
}

.pp-input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.pp-inline-note {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.65);
    margin-top: 10px;
}

.pp-meta {
    color: rgba(0, 0, 0, 0.65);
}

.pp-two-col {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    margin-top: 16px;
}

@media (min-width: 980px) {
    .pp-two-col {
        grid-template-columns: 1fr 1fr;
    }
}

.pp-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.pp-order-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

/* Cart layout */
.pp-cart {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    margin-top: 16px;
}

@media (min-width: 980px) {
    .pp-cart {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.pp-cart__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pp-cart__item {
    display: grid;
    grid-template-columns: 88px 1fr auto 110px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 740px) {
    .pp-cart__item {
        grid-template-columns: 88px 1fr;
        grid-auto-rows: auto;
    }

    .pp-cart__qty,
    .pp-cart__line {
        grid-column: 1 / -1;
    }

    .pp-cart__line {
        text-align: right;
    }
}

.pp-cart__thumb {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    position: relative;
}

.pp-cart__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-cart__title {
    font-weight: 600;
}

.pp-cart__price {
    color: rgba(0, 0, 0, 0.65);
    margin-top: 2px;
}

.pp-cart__qty {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.pp-qty-input {
    width: 74px;
    padding: 10px 10px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
}

.pp-cart__line {
    text-align: right;
    font-weight: 600;
}

.pp-cart__summary {
    position: sticky;
    top: 90px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.pp-cart__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Image fallback icon */
.pp-image-fallback .pp-fallback-icon {
    display: inline-block;
}

.pp-fallback-icon {
    display: none;
    font-size: 28px;
    color: rgba(0, 0, 0, 0.35);
}

/* Toast */
.pp-toast {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(17, 17, 17, 0.92);
    color: #fff;
    padding: 12px 14px;
    border-radius: 999px;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.pp-toast.is-active {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Carousel Fixes - Add to styles.css */
/* ======================================= */

/* Ensure carousel cells are properly positioned */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Carousel Fixes - scope to slideshow only */
.slideshow .carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow .carousel__cell,
.slideshow .slideshow__slide {
    width: 100%;
    height: 100%;
    position: absolute !important;
    top: 0;
    left: 0;
    opacity: 0;
    display: none;
    transition: opacity 1s ease-in-out;
}

/* Selected state for slideshow items */
.slideshow .carousel__cell.is-selected,
.slideshow .slideshow__slide.is-selected {
    opacity: 1 !important;
    display: block !important;
    z-index: 2;
}

/* Selected state for carousel items */
.carousel__cell.is-selected,
.slideshow__slide.is-selected {
    opacity: 1 !important;
    display: block !important;
    z-index: 2;
}
/*.testimonial {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}*/

/* Testimonials specific fixes */
/*.testimonial-list {
    position: relative;
    min-height: 300px;
}*/
.testimonial-list {
    background:
        linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%),
        radial-gradient(circle at top left, rgba(255,255,255,0.4), transparent 60%);
    padding: 80px 0;
    position: relative;
    /*min-height: 300px;*/
    overflow: hidden;          /* keeps everything inside the gradient */
}

.testimonial-list .carousel{
  width: 100%;
}

.testimonial-list .carousel__cell{
  width: 100%;               /* each testimonial slide fills the section */
  box-sizing: border-box;
}

.testimonial-list p,
.testimonial-list .testimonial__author {
    color: #070404;
}

.testimonial-list .carousel--loading {
  background: transparent !important;
}

.testimonial-list .carousel--loading::after {
  display: none !important;
}
/*.testimonial-list .carousel__cell,
.testimonial-list .testimonial {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}*/

/* Ensure first slide is visible on load */
.slideshow__slide:first-child {
    opacity: 1;
    display: block;
}

.testimonial:first-child {
    opacity: 1;
    display: block;
}

/* Fix for carousel controls */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.is-selected {
    background: white;
}

.slideshow__content .button {
    margin-top: 1.5rem;
    /* or use mt-6 if you're using Tailwind-like classes */
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    min-width: 180px;
    transition: all 0.3s ease;
}

.slideshow__content .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Ensure slideshow content is properly layered */
.slideshow__content--center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
}

/* Loading state */
.carousel--loading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.product-controls {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
}

.sort-wrapper label,
.range-wrapper label {
    margin-right: 0.8rem;
    font-weight: 500;
}

.sort-select,
input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.button--small {
    padding: 8px 16px;
    font-size: 0.95rem;
}

/* ===== Gallery: force 2-column image grid ===== */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* each tile */
.gallery-item{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;            /* fallback while image loads */
}

/* image fills the tile */
.gallery-item img{
  display: block;
  width: 100%;
  height: auto;               /* controls tile height; tweak as needed */
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .25s ease;
  background: #f5f5f5;
}

.gallery-item:hover img{
  transform: scale(1.06);
}

/* overlay */
.gallery-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
}

.gallery-overlay h4,
.gallery-overlay p{
  color: #fff;
  margin: 0;
}

.gallery-overlay p{
  opacity: .9;
  margin-top: 6px;
}

/* mobile: single column */
@media (max-width: 700px){
  .gallery-grid{
    grid-template-columns: 1fr;
  }
  .gallery-item img{
    height: 260px;
  }
}

/* REPLACE the existing mobile product styles (around line 1600-1750) with this: */

/* =======================================
   Mobile Product Card Fixes - VERTICAL LAYOUT
   ======================================= */

/* Ensure consistent product card heights */
.product-item {
    height: 100%;
}

.product-item__wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-item__info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Fix product title to take consistent space */
.product-item__title {
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fix description to take consistent space */
.pp-inline-note {
    min-height: 3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Push actions to bottom */
.product-item__actions {
    margin-top: auto;
    padding-top: 1rem;
}

/* Mobile Specific - VERTICAL LAYOUT - 2 COLUMNS */
@media (max-width: 576px) {
    .product-list--grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Keep VERTICAL layout on mobile */
    .product-item__wrapper {
        flex-direction: column;
        height: auto;
    }
    
    /* Image at top - fixed height for mobile */
    .product-item__image-wrapper {
        width: 100%;
        height: 150px;
        padding-top: 0 !important;
    }
    
    .product-item__image-wrapper .aspect-ratio {
        position: relative;
        padding-bottom: 0;
        height: 100%;
    }
    
    /* Content below image - compact for 2 columns */
    .product-item__info {
        padding: 0.8rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .product-item__title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        min-height: auto;
        -webkit-line-clamp: 2;
    }
    
    .pp-inline-note {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        min-height: auto;
        -webkit-line-clamp: 2;
        flex: 0;
    }
    
    .product-item__price-list {
        margin-bottom: 0.8rem;
    }
    
    .product-item__price {
        font-size: 1.1rem;
    }
    
    /* Buttons stacked vertically - compact */
    .product-item__actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: auto;
        padding-top: 0;
    }
    
    .product-item__actions form {
        width: 100%;
        margin: 0;
    }
    
    .product-item__actions .button {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }
    
    .product-item__actions .button i {
        font-size: 0.85rem;
    }
    
    /* Remove the old horizontal layout styles */
    .search-bar__form {
        flex-direction: column;
    }
    
    .search-bar__input {
        width: 100%;
    }
}

/* Tablet adjustments */
@media (min-width: 577px) and (max-width: 768px) {
    .product-list--grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-item__wrapper {
        min-height: 420px;
    }
    
    .product-item__image-wrapper {
        height: 200px;
        padding-top: 0 !important;
    }
    
    .product-item__image-wrapper .aspect-ratio {
        position: relative;
        padding-bottom: 0;
        height: 100%;
    }
    
    .product-item__title {
        font-size: 1.1rem;
    }
    
    .pp-inline-note {
        font-size: 0.9rem;
    }
}

/* Desktop - ensure cards are same height */
@media (min-width: 769px) {
    .product-list--grid {
        align-items: stretch;
    }
    
    .product-item__wrapper {
        min-height: 480px;
    }
    
    .product-item__image-wrapper {
        height: 220px;
        padding-top: 0 !important;
    }
    
    .product-item__image-wrapper .aspect-ratio {
        position: relative;
        padding-bottom: 0;
        height: 100%;
    }
    
    .product-item__actions {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .product-item__actions form {
        flex: 1;
        min-width: 120px;
    }
    
    .product-item__actions .button {
        width: 100%;
    }
}

/* Ensure images fill their containers properly */
.product-item__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback icon styling */
.pp-fallback-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(0,0,0,0.2);
}

.pp-image-fallback {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

/* Quantity Controls */
.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-btn:active {
    transform: scale(0.95);
}

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

.pp-qty-input {
    border: none;
    text-align: center;
    width: 50px;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 4px;
    background: white;
    -moz-appearance: textfield;
}

.pp-qty-input::-webkit-outer-spin-button,
.pp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Loading state */
.qty-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.qty-form.loading .qty-btn {
    cursor: wait;
}

.products-hero {
    padding: 120px 0;
    margin-bottom: 0;
    /*padding-bottom: 100px; *//* keep internal spacing only */
    text-align: center;
    color: #ffffff;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)
        ),
        url("../images/products/product.webp");
        

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.products-hero + .section {
    padding-top: 0;
}

/* Compact product tabs */
.tab-list {
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.tab-list__item {
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    font-family: 'Poppins', sans-serif;
}

@media (max-width: 768px) {
    .tab-list__item {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}

/* Sticky tabs under the fixed header */
.tab-list {
  position: sticky;
  top: var(--header-height, 70px);
  z-index: 900;                 /* below header (1000), above content */
  background: #fff;             /* prevents content showing through */
  padding: 12px 0;              /* breathing room while sticky */
  margin: 0;                    /* avoid extra gap when it sticks */
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Optional: keep section spacing when tabs become sticky */
.section-header {
  margin-bottom: 1.5rem;        /* if you want tighter spacing */
}

.tab-list {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
}


.cart-icon {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e63946;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.site-logo img {
    height: 48px;
}

.main-nav a {
    margin: 0 12px;
    text-decoration: none;
    font-weight: 500;
}

.main-nav a.active {
    border-bottom: 2px solid currentColor;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
    color: inherit;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e63946;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__cart-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* =======================================
   About Page Styles
   ======================================= */

/* About Hero Section */
.about-hero {
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.4)
    ),
    url('../images/about/hero.webp') center/cover no-repeat;
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    margin-bottom: 0;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 400;
}

.about-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    letter-spacing: 1px;
}

/* About Content Section */
.about-content {
    padding: 80px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-subdued);
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Features/Values Section */
.features {
    padding: 80px 0;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-subdued);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.team-member {
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.team-member h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.team-member p {
    color: var(--text-subdued);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Timeline Section - Already exists in main CSS but ensuring consistency */
.timeline-section {
    background: var(--light-color);
    padding: 80px 0;
}

.timeline__image-wrapper {
    width: 400px;
    height: 400px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.timeline__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonials/Recognition Section */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.testimonial-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-card .feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.testimonial-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.testimonial-card p {
    color: var(--text-subdued);
    line-height: 1.6;
}

/* =======================================
   Responsive Design for About Page
   ======================================= */

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-hero p {
        font-size: 1.1rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline__image-wrapper {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 80px 0 60px;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .about-content,
    .features,
    .team-section,
    .testimonials {
        padding: 60px 0;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }
}

/* Cart Badge Styling */
.cart-badge {
    background: var(--primary-color); /* Red/pink from your theme */
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 50%; /* Circle shape */
    margin-left: 0.5rem;
    display: inline-block;
    min-width: 1.5rem;
    text-align: center;
}

.header__cart-link {
    position: relative; /* For potential positioning */
}

@media (max-width: 768px) {
    .cart-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.5rem;
    }
}

/* Cart count badge - top right icon */
.header__cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color, #d4626a);
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Cart count in mobile sidebar */
.sidebar-cart-count {
    background: var(--primary-color, #d4626a);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    padding: 0 6px;
    border-radius: 12px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}
.faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.faq-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.faq-intro {
    color: #666;
    font-size: 1.05rem;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 35px;
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.faq-item p,
.faq-item li {
    color: #444;
    line-height: 1.7;
}

.faq-item ul {
    padding-left: 20px;
}
/* =======================================
   Cart Badge and Navigation Fixes
   ======================================= */

/* Main cart badge on header icon */
.header__cart-dot,
.header__cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545; /* Bright red for visibility */
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex !important; /* Force display when present */
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    line-height: 1;
    animation: badge-appear 0.3s ease-in-out;
}

/* Animation for badge appearing */
@keyframes badge-appear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ensure cart icon container is positioned */
.header__icon[href="cart.php"] {
    position: relative !important;
}

/* Sidebar cart count styling */
.sidebar-cart-count {
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    display: inline-block;
    min-width: 20px;
    text-align: center;
    line-height: 1.2;
}

/* Mobile menu drawer fix for z-index issues */
.drawer {
    z-index: 10000 !important; /* Ensure drawer is above everything */
}

.drawer.active {
    transform: translateX(0) !important;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

/* Ensure drawer close button is clickable */
.drawer__close {
    position: relative;
    z-index: 10001;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

/* Fix for drawer overlay */
body.drawer-open {
    overflow: hidden;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .header__cart-dot,
    .header__cart-count {
        top: -5px;
        right: -5px;
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
        padding: 0 4px;
    }
    
    .sidebar-cart-count {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
}

/* Ensure proper stacking context */
.header {
    position: relative;
    z-index: 1000;
}

.header__wrapper {
    position: relative;
}

.header__flex-item--right {
    position: relative;
    z-index: 10;
}

/* Fix potential visibility issues */
.header__cart-dot:empty,
.header__cart-count:empty {
    display: none !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .header__cart-dot,
    .header__cart-count,
    .sidebar-cart-count {
        border: 2px solid white;
        font-weight: 700;
    }
}

/* Print styles - hide cart badge when printing */
@media print {
    .header__cart-dot,
    .header__cart-count,
    .sidebar-cart-count {
        display: none !important;
    }
}
/* Styles for tab list - add this to bottom of styles.css */

/* Tab List Container */
.tab-list {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping to new rows */
    justify-content: center; /* Center tabs */
    gap: 1rem; /* Space between tabs */
    margin-bottom: 2rem; /* Space below tabs */
    list-style: none; /* Remove bullets if it's a ul */
    padding: 0;
}

/* Individual Tab Buttons */
.tab-button {
    flex: 0 1 calc(33.333% - 1rem); /* 3 per row: 33.333% width minus gaps */
    max-width: calc(33.333% - 1rem); /* Ensure max 3 per row */
    padding: 1rem 2rem;
    background: var(--light-color, #f5f5f5);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-color, #333);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tab-button:hover {
    background: var(--secondary-color, #f8b5a5);
    color: white;
}

.tab-button.active {
    background: var(--primary-color, #d4626a);
    color: white;
    border-color: var(--primary-color, #d4626a);
}

/* Responsive: On small screens, stack to 1 or 2 per row */
@media (max-width: 768px) {
    .tab-button {
        flex: 0 1 calc(50% - 1rem); /* 2 per row on tablet/mobile */
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .tab-button {
        flex: 0 1 100%; /* 1 per row on very small screens */
        max-width: 100%;
    }
}
/* =======================================
   Category Tabs - Responsive 3-per-row
   ======================================= */

/* Container for the tabs */
.section-header__tab-list.tab-list {
    display: flex;
    flex-wrap: wrap;           /* ← this allows wrapping to new lines */
    justify-content: center;   /* center the tabs horizontally */
    gap: 1rem;                 /* space between tabs — adjust as needed */
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;          /* in case someone uses ul/li */
}

/* Each tab button */
.tab-list__item {
    flex: 0 1 calc(33.333% - (2rem / 3));  /* 3 per row: 33.333% minus gap share */
    max-width: calc(33.333% - (2rem / 3)); /* prevent overflow */
    min-width: 180px;                      /* minimum comfortable width */
    padding: 0.9rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #333;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Active / selected state */
.tab-list__item.is-active,
.tab-list__item[aria-selected="true"] {
    background: var(--primary-color, #d4626a);
    color: white;
    border-color: var(--primary-color, #d4626a);
}

/* Hover state */
.tab-list__item:hover:not(.is-active) {
    background: var(--secondary-color, #EDB5D2);
    color: white;
    border-color: var(--secondary-color, #EDB5D2);
}

/* ──────────────────────────────────────────────
   Responsive behavior
   ────────────────────────────────────────────── */

@media (max-width: 992px) {
    .tab-list__item {
        flex: 0 1 calc(50% - 0.5rem);    /* 2 per row on tablets */
        max-width: calc(50% - 0.5rem);
    }
}

@media (max-width: 600px) {
    .tab-list__item {
        flex: 0 1 100%;                  /* 1 per row on phones */
        max-width: 100%;
    }
}

/* ──────────────────────────────────────────────
   Category Tabs - Desktop + Mobile friendly
   ────────────────────────────────────────────── */

.section-header__tab-list.tab-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;          /* horizontal and vertical gap */
    margin: 1.5rem 0;
    padding: 0 1rem;         /* small side padding on narrow screens */
}

/* Base tab style */
.tab-list__item {
    flex: 0 1 auto;                        /* grow & shrink naturally */
    min-width: 140px;                      /* never too narrow */
    max-width: calc(33.333% - 11px);       /* max ~3 per row (accounting for gap) */
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Active & hover */
.tab-list__item.is-active,
.tab-list__item[aria-selected="true"] {
    background: var(--primary-color, #d4626a);
    color: white;
    border-color: var(--primary-color);
}

.tab-list__item:hover:not(.is-active) {
    background: var(--secondary-color, #EDB5D2);
    color: white;
}

/* ───── Mobile-first responsive ───── */

/* Tablets & larger phones (~≤ 1024px) → prefer 2 per row */
@media (max-width: 1024px) {
    .tab-list__item {
        max-width: calc(50% - 8px);     /* 2 per row */
        min-width: 160px;
    }
}

/* Small phones (~≤ 640px) → 1 per row, full width */
@media (max-width: 640px) {
    .tab-list__item {
        flex: 1 1 100%;                 /* full width */
        max-width: 100%;
        min-width: unset;
        margin: 0 auto;
    }

    /* Optional: make tabs taller/more touch-friendly */
    .tab-list__item {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .section-header__tab-list.tab-list {
        gap: 10px;
        padding: 0 12px;
    }
}

/* ───────────────────────────────────────────────
   Product Detail - Full natural image
─────────────────────────────────────────────── */

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;           /* or 5fr 7fr etc. — adjust ratio as you like */
    gap: 3rem;
    align-items: start;
}

.main-image-wrapper {
    background: #fff;                         /* or var(--light-color) */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    padding: 1rem;                            /* breathing room around image */
    aspect-ratio: auto;                       /* ← important: don't force ratio */
}

.main-product-image {
    width: 100%;
    height: auto;                             /* ← key: preserve original proportions */
    display: block;
    object-fit: contain;                      /* ← show full image, no cropping */
    max-height: 80vh;                         /* prevent it from becoming gigantic on large screens */
    margin: 0 auto;
    transition: transform 0.4s ease;
}

.main-product-image:hover {
    transform: scale(1.03);                   /* subtle zoom on hover — optional */
}

/* Optional: make it bigger on mobile */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .main-image-wrapper {
        padding: 0.5rem;
    }
    
    .main-product-image {
        max-height: 60vh;
    }
}

/* Fallback when no image */
.no-image-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    color: var(--text-subdued);
    border-radius: 12px;
}

.product-gallery-carousel {
    width: 100%;
    min-height: 400px;          /* adjust to taste */
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.carousel-cell {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.product-gallery-image {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    object-fit: contain;       /* full image visible – no forced crop */
    display: block;
}

.flickity-page-dots {
    bottom: 12px;
}
.flickity-prev-next-button {
    background: rgba(255,255,255,0.75);
}

/* Thumbnails */
.thumbnail-btn {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    padding: 0;
    background: none;
    cursor: pointer;
}
.thumbnail-btn.is-selected,
.thumbnail-btn:hover {
    border-color: var(--primary-color);
    transform: scale(1.06);
}

.main-image-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    text-align: center;
}

.main-product-image {
    max-width: 100%;
    max-height: 70vh;           /* prevents it from being too tall */
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.thumbnail {
    border: 3px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    padding: 4px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    display: block;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(212,98,106,0.3); /* using your --primary-color */
}

/* Default dock bar style */
.dock-bar {
  transition: all 0.3s ease;
}

/* Smaller docked state */
.dock-bar.is-docked {
  padding: 8px 0; /* Reduced padding */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtler shadow */
}

/* If the dock bar contains tabs or other elements */
.dock-bar.is-docked .tab-list__item {
  padding: 8px 16px; /* Smaller tab padding */
  font-size: 0.9rem; /* Slightly smaller font */
}

/* If there's a logo or title in the dock bar */
.dock-bar.is-docked .logo,
.dock-bar.is-docked .dock-title {
  height: 30px; /* Smaller logo/title */
  transform: scale(0.85);
}

/* If there's a search bar in the dock */
.dock-bar.is-docked .search-bar__input {
  height: 36px; /* Smaller search input */
  font-size: 0.9rem;
}

.dock-bar.is-docked .search-bar__button {
  padding: 8px 16px; /* Smaller button */
  font-size: 0.9rem;
}






.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

/* Prevent common cart layers from overlapping the header */
.main-content,
.section,
.pp-cart,
.pp-cart__summary {
  position: relative;
  z-index: 0;
}