/**
 * Premium Styling for Gaby Bella Florist Catalog Page
 *
 * Designed with a luxury gold/dark-brown palette matching the florist branding.
 * Includes hover animations, responsive layouts, and embedded vector icons.
 */

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

/* Page Header */
.catalog-page-header {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.catalog-main-title {
    font-family: 'Prata', Georgia, serif !important;
    font-size: 2.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    color: #d4b26f !important; /* Premium Gold */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    margin: 0 !important;
}

/* Category Headers */
.catalog-section-header {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 35px;
}

.catalog-section-header:first-of-type {
    margin-top: 10px;
}

.category-title {
    font-family: 'Prata', Georgia, serif !important;
    font-size: 2.125rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    color: #d4b26f !important; /* Premium Gold */
    margin-bottom: 12px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.category-divider {
    width: 80px;
    height: 3px;
    background-color: #d4b26f; /* Gold Divider */
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Product Grid */
.custom-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

/* Product Card Container */
.custom-product-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #ebdcd5;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
}

.custom-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
    border-color: #d4b26f;
}

/* Product Image Wrapper */
.product-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    background-color: #faf8f7;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Product CTA Buttons Wrapper */
.product-cta-buttons-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
    padding-top: 0;
    border-top: none;
}

/* CTA Buttons */
.product-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 11px 12px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    color: #ffffff !important;
}

.product-cta-btn:active {
    transform: translateY(1px) !important;
}

/* Shopee Button Color Override */
.shopee-cta-btn {
    background-color: #ee4d2d !important; /* Shopee Orange */
}

.shopee-cta-btn:hover {
    background-color: #df3e1f !important;
    box-shadow: 0 5px 12px rgba(238, 77, 45, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* WhatsApp Button Color Override */
.whatsapp-cta-btn {
    background-color: #25d366 !important; /* WA Green */
}

.whatsapp-cta-btn:hover {
    background-color: #20ba5a !important;
    box-shadow: 0 5px 12px rgba(37, 211, 102, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* SVG Icon Base Styling */
.btn-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.shopee-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="%23ffffff"><path d="M128 128H96c-17.7 0-32 14.3-32 32V416c0 17.7 14.3 32 32 32H352c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32H320V96c0-53-43-96-96-96s-96 43-96 96v32zm64-32c0-17.7 14.3-32 32-32s32 14.3 32 32v32H192V96zm-96 96h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H96c-8.8 0-16 7.2-16 16s7.2 16 16 16zm224 0h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H320c-8.8 0-16 7.2-16 16s7.2 16 16 16z"/></svg>');
}

.whatsapp-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="%23ffffff"><path d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg>');
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .custom-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .catalog-main-title {
        font-size: 2.25rem !important;
    }
    .category-title {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 575px) {
    .catalog-page-container {
        padding: 10px 10px 40px 10px;
    }
    
    .custom-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .catalog-main-title {
        font-size: 1.75rem !important;
    }
    
    .category-title {
        font-size: 1.375rem !important;
        margin-bottom: 8px !important;
    }
    
    .category-divider {
        width: 50px;
        height: 2px;
    }
    
    .custom-product-card {
        padding: 8px;
        border-radius: 10px;
    }
    
    .product-image-wrapper {
        margin-bottom: 8px;
        border-radius: 6px;
    }
    
    .product-cta-buttons-wrapper {
        grid-template-columns: 1fr; /* Stack buttons on narrow mobile screen */
        gap: 6px;
        margin-top: 8px;
    }
    
    .product-cta-btn {
        padding: 9px 8px !important;
        font-size: 0.6875rem !important;
        gap: 4px !important;
        border-radius: 6px !important;
    }
}
