/* ==========================================================================
   SS FASHION — Freshly Added & Products Section Styling
   Pixel-perfect implementation matching brand guidelines & reference design
   ========================================================================== */

.freshly-added-section {
    position: relative;
    padding: 3rem 1.5rem 4rem;
    background-color: #FCFBF7;
    max-width: 1240px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Section Header with Ornamental Dividers & Gold Motif
   -------------------------------------------------------------------------- */
.section-header-wrap {
    text-align: center;
    margin-bottom: 2.25rem;
    position: relative;
}

.section-motif-crown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    color: #C5A46D;
}

.section-title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    margin-bottom: 0.35rem;
}

.section-gold-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(197, 164, 109, 0) 0%, rgba(197, 164, 109, 0.6) 50%, rgba(197, 164, 109, 0.9) 100%);
}

.section-gold-divider.divider-right {
    background: linear-gradient(90deg, rgba(197, 164, 109, 0.9) 0%, rgba(197, 164, 109, 0.6) 50%, rgba(197, 164, 109, 0) 100%);
}

.section-title-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ornamental-star {
    color: #C5A46D;
    font-size: 0.95rem;
    user-select: none;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.15rem;
    font-weight: 600;
    color: #782337;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.view-all-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #782337;
    text-decoration: none;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.25s ease, transform 0.25s ease;
    padding: 4px 8px;
}

.view-all-link:hover {
    color: #C5A46D;
    transform: translateY(-50%) translateX(3px);
}

.section-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #7c746e;
    margin: 0;
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Product Grid (4 Columns Desktop / 2 Columns Mobile)
   -------------------------------------------------------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: transparent;
    transition: transform 0.3s ease;
    min-width: 0;
}

.product-card a {
    color: inherit;
    text-decoration: none;
}

/* Image Container */
.product-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background-color: #F4EFEA;
    border: 1px solid rgba(197, 164, 109, 0.2);
    box-shadow: 0 4px 15px rgba(40, 35, 33, 0.04);
}

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

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

/* Badges */
.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background-color: #782337;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(120, 35, 55, 0.35);
}

/* Wishlist Heart Button */
.btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #782337;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-wishlist svg {
    width: 16px;
    height: 16px;
    stroke: #782337;
    fill: none;
    transition: all 0.25s ease;
}

.btn-wishlist:hover {
    background: #ffffff;
    transform: scale(1.1);
    color: #782337;
}

.btn-wishlist.active svg {
    fill: #782337;
    stroke: #782337;
}

/* Quick WhatsApp Enquiry Hover Action (Desktop) */
.product-quick-action {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(40, 35, 33, 0.85) 0%, rgba(40, 35, 33, 0) 100%);
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 3;
}

.product-card:hover .product-quick-action {
    opacity: 1;
    transform: translateY(0);
}

.btn-quick-inquire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.58rem 0.75rem;
    background-color: #782337;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 8px;
    border: 1px solid rgba(197, 164, 109, 0.5);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(120, 35, 55, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-quick-inquire:hover {
    background-color: #5B1828;
    transform: translateY(-1px);
}

/* Product Meta Info */
.product-meta {
    padding-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.product-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #282321;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title a {
    color: #282321;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card:hover .product-title a {
    color: #782337;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-top: 2px;
}

.price-stack {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #782337 !important;
}

.product-old-price {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: #9c938d !important;
    text-decoration: line-through;
}

/* Mobile Quick Buy Now Pill Button on Card */
.btn-mobile-wa {
    display: none;
    padding: 5px 10px;
    border-radius: 999px;
    background-color: #782337;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(120, 35, 55, 0.28);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-mobile-wa:active {
    transform: scale(0.94);
}

/* --------------------------------------------------------------------------
   Mobile & Responsive Viewport Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .section-heading {
        font-size: 1.85rem;
    }
}

@media (max-width: 768px) {
    .freshly-added-section {
        padding: 1.75rem 12px 2.5rem;
    }

    .section-header-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1.25rem;
    }

    .section-motif-crown {
        margin-bottom: 0.2rem;
    }

    .section-title-line {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        position: relative;
        gap: 0.5rem;
    }

    .section-gold-divider {
        display: none;
    }

    .section-title-box {
        margin: 0 auto;
    }

    .section-heading {
        font-size: 1.35rem;
    }

    .view-all-link {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75rem;
        padding: 2px 4px;
    }

    .section-subtitle {
        font-size: 0.85rem;
        margin-top: 2px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-img-box {
        border-radius: 10px;
    }

    .badge-new {
        top: 6px;
        left: 6px;
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .btn-wishlist {
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
    }

    .btn-wishlist svg {
        width: 14px;
        height: 14px;
    }

    .product-quick-action {
        display: none; /* Replaced by btn-mobile-wa for direct mobile tap */
    }

    .btn-mobile-wa {
        display: flex;
    }

    .product-title {
        font-size: 0.88rem;
    }

    .product-price {
        font-size: 0.92rem;
    }

    .product-old-price {
        font-size: 0.76rem;
    }
}

@media (max-width: 360px) {
    .freshly-added-section {
        padding: 1.25rem 8px 2rem;
    }

    .section-heading {
        font-size: 1.18rem;
    }

    .view-all-link {
        position: static;
        transform: none;
        margin-top: 4px;
        font-size: 0.72rem;
    }

    .products-grid {
        gap: 8px;
    }

    .product-title {
        font-size: 0.82rem;
    }

    .product-price {
        font-size: 0.88rem;
    }

    .product-old-price {
        font-size: 0.72rem;
    }

    .btn-mobile-wa {
        padding: 4px 8px;
        font-size: 0.6rem;
    }
}

/* ==========================================================================
   All Products Showcase Page (`shop.php`) — Luxury Boutique Styling
   ========================================================================== */
.shop-hero-banner {
    background: linear-gradient(180deg, #FAF5EC 0%, #FCFBF7 100%);
    border-bottom: 1px solid rgba(197, 164, 109, 0.35);
    padding: 36px 16px 28px;
    text-align: center;
}

.shop-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.shop-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #9A773E;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.shop-main-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: #782337;
    margin: 0 0 8px;
    line-height: 1.2;
}

.shop-main-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    color: #6E625C;
    max-width: 580px;
    margin: 0 auto 22px;
}

.shop-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: #FFFFFF;
    border: 1px solid rgba(197, 164, 109, 0.45);
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 6px 20px rgba(40, 35, 33, 0.04);
    max-width: 100%;
    overflow: hidden;
}

.shop-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.shop-filter-pills::-webkit-scrollbar {
    display: none;
}

.shop-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #282321;
    background: #FAF6EE;
    border: 1px solid rgba(197, 164, 109, 0.4);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.shop-pill:hover {
    border-color: #782337;
    color: #782337;
}

.shop-pill.active {
    background: #782337;
    color: #FFFFFF;
    border-color: #782337;
    box-shadow: 0 4px 12px rgba(120, 35, 55, 0.25);
}

.shop-inline-search {
    display: flex;
    align-items: center;
    background: #FAF6EE;
    border: 1px solid rgba(197, 164, 109, 0.45);
    border-radius: 999px;
    padding: 4px 12px;
    min-width: 240px;
}

.shop-inline-search input {
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    color: #282321;
    padding: 5px 4px;
    width: 100%;
    outline: none;
}

.shop-inline-search button {
    background: none;
    border: none;
    color: #782337;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
}

.shop-clear-search {
    font-size: 1.1rem;
    color: #8C827B;
    padding: 0 6px;
    text-decoration: none;
}

/* Showcase Section Container */
.shop-showcase-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 16px 64px;
}

.shop-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #6E625C;
}

.shop-count-label strong {
    color: #782337;
}

.shop-wa-assist {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #782337;
    background: #FAF6EE;
    border: 1px solid rgba(197, 164, 109, 0.45);
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
}

/* Luxury Product Card Enhancements */
.luxury-showcase-card {
    background: #FFFFFF;
    border: 1px solid rgba(197, 164, 109, 0.4);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(40, 35, 33, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.luxury-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(120, 35, 55, 0.12);
}

.badge-discount {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    background: #C5A46D;
    color: #282321;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
}

.showcase-card-body {
    padding: 12px 6px 6px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.showcase-cat-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.showcase-cat-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9A773E;
}

.showcase-rating {
    font-size: 0.74rem;
    font-weight: 700;
    color: #282321;
}

.star-gold {
    color: #E5A000;
}

.showcase-card-desc {
    font-size: 0.78rem;
    color: #6E625C;
    line-height: 1.4;
    margin: 4px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-price-row {
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px dashed rgba(197, 164, 109, 0.35);
}

.showcase-sku-tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: #8C827B;
    background: #FAF6EE;
    padding: 2px 7px;
    border-radius: 6px;
}

.btn-card-add-cart {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 10px;
    background: #FAF6EE;
    color: #782337;
    border: 1.5px solid #C5A46D;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-card-add-cart:hover {
    background: #782337;
    color: #FFFFFF;
    border-color: #782337;
}

.btn-card-add-cart.is-added {
    background: #EBFBEE;
    color: #2B8A3E;
    border-color: #2B8A3E;
}

.showcase-cta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.btn-showcase-buy {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8A2940 0%, #681B2D 100%);
    color: #FFFFFF !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(120, 35, 55, 0.25);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-showcase-buy:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

.btn-showcase-wa {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #25D366;
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.28);
    transition: transform 0.2s ease;
}

.btn-showcase-wa:hover {
    transform: translateY(-1px);
}

.shop-empty-state {
    background: #FFFFFF;
    border: 1px solid rgba(197, 164, 109, 0.4);
    border-radius: 20px;
    padding: 48px 20px;
    text-align: center;
}

.shop-empty-state h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    color: #782337;
    margin-bottom: 8px;
}

.shop-empty-state p {
    font-size: 0.9rem;
    color: #6E625C;
    margin-bottom: 18px;
}

.btn-Reset-Shop {
    display: inline-block;
    background: #782337;
    color: #FFFFFF !important;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .shop-hero-banner {
        padding: 20px 10px 16px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .shop-hero-inner {
        width: 100%;
        max-width: 100%;
    }

    .shop-eyebrow {
        font-size: 0.64rem;
        letter-spacing: 0.14em;
    }

    .shop-main-title {
        font-size: 1.45rem;
    }

    .shop-main-subtitle {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }

    .shop-controls-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        gap: 8px;
        width: 100%;
        border-radius: 14px;
    }

    .shop-filter-pills {
        width: 100%;
        gap: 6px;
        padding-bottom: 2px;
    }

    .shop-pill {
        padding: 6px 12px;
        font-size: 0.72rem;
    }

    .shop-inline-search {
        min-width: 0;
        width: 100%;
        padding: 3px 10px;
    }

    .shop-inline-search input {
        font-size: 0.8rem;
        min-width: 0;
    }

    .shop-showcase-section {
        padding: 16px 10px 56px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .shop-results-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 14px;
        font-size: 0.78rem;
    }

    .shop-wa-assist {
        font-size: 0.72rem;
        padding: 5px 10px;
        width: 100%;
        justify-content: center;
    }

    .products-grid.shop-catalogue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .luxury-showcase-card {
        padding: 6px;
        border-radius: 12px;
        min-width: 0;
        width: 100%;
    }

    .showcase-card-body {
        padding: 8px 4px 4px;
        min-width: 0;
    }

    .showcase-cat-tag {
        font-size: 0.6rem;
    }

    .showcase-rating {
        font-size: 0.68rem;
    }

    .showcase-card-desc {
        display: none;
    }

    .showcase-price-row {
        flex-wrap: wrap;
        gap: 4px;
    }

    .showcase-sku-tag {
        font-size: 0.58rem;
        padding: 1px 5px;
    }

    .btn-card-add-cart {
        font-size: 0.66rem;
        padding: 7px 6px;
        border-radius: 8px;
        margin-top: 6px;
        gap: 4px;
    }

    .showcase-cta-row {
        gap: 6px;
        margin-top: 5px;
    }

    .btn-showcase-buy {
        font-size: 0.68rem;
        padding: 8px 6px;
        border-radius: 8px;
        min-width: 0;
    }

    .btn-showcase-wa {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .btn-showcase-wa svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 360px) {
    .shop-hero-banner {
        padding: 16px 8px 14px;
    }

    .shop-main-title {
        font-size: 1.28rem;
    }

    .shop-showcase-section {
        padding: 14px 8px 50px;
    }

    .products-grid.shop-catalogue-grid {
        gap: 8px;
    }

    .luxury-showcase-card {
        padding: 5px;
        border-radius: 10px;
    }

    .showcase-sku-tag {
        display: none;
    }

    .btn-card-add-cart {
        font-size: 0.62rem;
        padding: 6px 4px;
    }

    .btn-showcase-buy {
        font-size: 0.64rem;
        padding: 7px 4px;
    }

    .btn-showcase-wa {
        width: 28px;
        height: 28px;
    }
}
