/* =========================================================
   COASTLINE CAFE - SHOP / MENU PAGE STYLING
========================================================= */

.shop-page {
    width: 100%;
    background: var(--cream);
    min-height: calc(100vh - 90px - 210px);
}

/* =========================================================
   CATEGORY / SEARCH TOOLBAR
========================================================= */
.shop-toolbar {
    width: 100%;
    min-height: 72px;
    padding: 0 max(20px, 9.44%);
    background: #694624;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(50, 30, 15, 0.15);
}

.shop-categories {
    display: flex;
    align-items: center;
    height: 72px;
    overflow-x: auto;
    scrollbar-width: none;
}

.shop-categories::-webkit-scrollbar {
    display: none;
}

.shop-category {
    height: 72px;
    padding: 0 24px;
    border: none;
    background: transparent;
    color: #FFF7EE;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.shop-category:hover {
    background: rgba(255, 247, 238, 0.12);
    color: #FFEEC7;
}

.shop-category.active {
    background: #50351A;
    color: #DBAD65;
    border-bottom-color: #DBAD65;
}

/* SEARCH INPUT */
.shop-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.shop-search {
    width: 220px;
    height: 38px;
    padding: 0 16px 0 38px;
    border: 1.8px solid rgba(255, 247, 238, 0.7);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #FFF7EE;
    font-size: 13.5px;
    outline: none;
    transition: all 0.25s ease;
}

.shop-search::placeholder {
    color: rgba(255, 247, 238, 0.75);
    font-style: italic;
}

.shop-search:focus {
    width: 260px;
    background: rgba(255, 255, 255, 0.18);
    border-color: #DBAD65;
    box-shadow: 0 0 0 3px rgba(219, 173, 101, 0.25);
}

.shop-search-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: #FFEEC7;
    pointer-events: none;
}

/* =========================================================
   PRODUCTS GRID & SECTIONS
========================================================= */
.shop-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 50px 0 90px;
}

.product-section {
    margin-bottom: 60px;
}

.product-section:last-child {
    margin-bottom: 0;
}

.product-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--border-subtle);
}

.product-section-title {
    color: var(--dark-brown);
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.product-section-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-brown);
}

/* 5 COLS GRID (RESPONSIVE) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* PRODUCT CARD */
.product-card {
    position: relative;
    background: #FFFDF9;
    border: 1px solid rgba(105, 70, 36, 0.14);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(105, 70, 36, 0.05);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(105, 70, 36, 0.12);
    border-color: rgba(105, 70, 36, 0.25);
}

/* EDGE-TO-EDGE TOP IMAGE THUMBNAIL (Taller: 236px desktop, anchored to very top) */
.product-image {
    position: relative;
    width: 100%;
    height: 236px;
    background: #F4ECE3;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.product-card-drink-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-drink-img {
    transform: scale(1.05);
}

.product-card:hover .product-image {
    filter: brightness(1.02);
}

.product-must-try-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(105, 70, 36, 0.75);
    color: #FFEEC7;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 0;
    backdrop-filter: blur(4px);
}

.product-info {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    color: #694624;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
}

.product-desc {
    color: #694624;
    opacity: 0.88;
    font-size: 12.5px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-price {
    color: #694624;
    font-size: 16px;
    font-weight: 800;
}

/* ADD BUTTON HOVER REVEAL - Exact Plus SVG, transparent button frame, no hover color change */
.product-add {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-add svg {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
}

.product-add svg path {
    fill: #694624;
    transition: opacity 0.2s ease;
}

.product-card:hover .product-add {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.product-add:hover {
    transform: scale(1.06);
    opacity: 0.9;
}

/* EMPTY SEARCH / FILTER STATE */
.no-products {
    display: none;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-brown);
    font-size: 16px;
}

/* =========================================================
   RESPONSIVE (Preserving Desktop, Dedicated Mobile Grid)
========================================================= */
@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 860px) {
    .shop-toolbar {
        padding: 0 16px;
        position: sticky;
        top: 72px;
        z-index: 100;
        min-height: 60px;
    }
    .shop-categories {
        height: 60px;
        -webkit-overflow-scrolling: touch;
    }
    .shop-category {
        height: 60px;
        padding: 0 18px;
        font-size: 13.5px;
    }
    .shop-content {
        width: min(1180px, calc(100% - 28px));
        padding: 32px 0 70px;
    }
    .product-add {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
        right: 10px;
        bottom: 10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* MOBILE PHONES: STRICT 2-COLUMN GRID */
@media (max-width: 680px) {
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: 10px 14px;
        gap: 10px;
        top: 66px;
    }
    .shop-categories {
        height: 44px;
        justify-content: flex-start;
    }
    .shop-category {
        height: 44px;
        padding: 0 14px;
        font-size: 13px;
    }
    .shop-search-wrapper {
        width: 100%;
    }
    .shop-search {
        width: 100% !important;
        height: 40px;
        font-size: 14px;
    }
    .shop-content {
        width: min(1180px, calc(100% - 20px));
        padding: 24px 0 60px;
    }
    .product-section {
        margin-bottom: 40px;
    }
    .product-section-header {
        margin-bottom: 16px;
        padding-bottom: 8px;
    }
    .product-section-title {
        font-size: 18px;
    }
    .product-section-count {
        font-size: 12px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .product-image {
        height: 175px;
        align-items: flex-start;
    }
    .product-card-drink-img {
        object-position: top center;
    }
    .product-info {
        padding: 10px 10px 12px;
    }
    .product-name {
        font-size: 13.5px;
        margin-bottom: 4px;
        line-height: 1.25;
    }
    .product-desc {
        font-size: 11.5px;
        line-height: 1.35;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }
    .product-price {
        font-size: 14.5px;
    }
    .product-add {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
        right: 8px;
        bottom: 8px;
        width: 30px;
        height: 30px;
    }
    .product-must-try-tag {
        top: 6px;
        left: 6px;
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 380px) {
    .product-grid {
        gap: 8px;
    }
    .product-image {
        height: 140px;
    }
    .product-info {
        padding: 8px 8px 10px;
    }
    .product-name {
        font-size: 12.5px;
    }
    .product-price {
        font-size: 13.5px;
    }
}
