/* ==========================================================================
   UNIVERSAL PRODUCT CARD COMPONENT STYLES - UNIFIED VERSION
   All product cards use identical styling regardless of context
   ========================================================================== */

/* Base Product Card Styles (applies to ALL cards everywhere) */
.product-card,
.product-card--seasonal,
.product-card--default {
    font-family: 'Montserrat', sans-serif;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
    position: relative;
    box-sizing: border-box;
    height: 100%;
    min-height: 440px;
    flex: 1;
    width: 100%;
    /* UNIFIED STYLING: All cards are green with white text */
    background: #2A5B55 !important;
    color: #FFFFFF !important;
}

.product-card:hover,
.product-card--seasonal:hover,
.product-card--default:hover {
    box-shadow: 0 4px 16px rgba(42, 91, 85, 0.2);
}

/* ==========================================================================
   IMAGE STYLES - UNIFIED FOR ALL CARDS
   ========================================================================== */
.product-card .product-card__image,
.product-card--seasonal .product-card__image,
.product-card--default .product-card__image {
    position: relative;
    width: 100%;
    height: 260px;
    margin: 0 0 16px;
    overflow: hidden;
    border-radius: 20px;
    z-index: 1;
    flex-shrink: 0;
}

.product-card .product-card__image img,
.product-card--seasonal .product-card__image img,
.product-card--default .product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	object-position: center;
    border-radius: 20px;
    display: block;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.product-card .product-card__image a,
.product-card--seasonal .product-card__image a,
.product-card--default .product-card__image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Prevent zoom effects */
.product-card:hover .product-card__image img,
.product-card--seasonal:hover .product-card__image img,
.product-card--default:hover .product-card__image img { 
    transform: none !important; 
}

/* ==========================================================================
   CONTENT STYLES - UNIFIED FOR ALL CARDS
   ========================================================================== */
.product-card .product-card__content,
.product-card--seasonal .product-card__content,
.product-card--default .product-card__content {
    position: relative;
    z-index: 2;
    padding: 16px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-sizing: border-box;
    background: transparent;
    border-radius: 0 0 24px 24px;
    flex: 1;
}

.product-card .product-card__content-top,
.product-card--seasonal .product-card__content-top,
.product-card--default .product-card__content-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-card .product-card__content-bottom,
.product-card--seasonal .product-card__content-bottom,
.product-card--default .product-card__content-bottom {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 8px;
}

/* ==========================================================================
   TEXT STYLES - UNIFIED FOR ALL CARDS
   ========================================================================== */

/* Product Code */
.product-card .product-card__code,
.product-card--seasonal .product-card__code,
.product-card--default .product-card__code {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(244, 237, 229, 0.9) !important;
    margin: 0 0 6px 0;
    height: 21px;
}

/* Product Title */
.product-card .product-card__title,
.product-card--seasonal .product-card__title,
.product-card--default .product-card__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.219;
    letter-spacing: -0.06875em;
    color: #F4EDE5 !important;
    margin: 0 0 8px 0;
    height: 20px;
}

.product-card .product-card__title a,
.product-card--seasonal .product-card__title a,
.product-card--default .product-card__title a {
    color: inherit !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card .product-card__title a:hover,
.product-card--seasonal .product-card__title a:hover,
.product-card--default .product-card__title a:hover {
    color: rgba(244, 237, 229, 0.8) !important;
}

/* Product Rating */
.product-card .product-card__rating,
.product-card--seasonal .product-card__rating,
.product-card--default .product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.219;
    letter-spacing: -0.06875em;
    color: #F4EDE5 !important;
    margin: 0 0 10px 0;
    height: 20px;
}

.product-card .product-card__rating svg,
.product-card--seasonal .product-card__rating svg,
.product-card--default .product-card__rating svg {
    width: 20px;
    height: 20px;
    color: #FFFFFF !important;
    flex-shrink: 0;
}

/* Product Price */
.product-card .product-card__price,
.product-card--seasonal .product-card__price,
.product-card--default .product-card__price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.219;
    letter-spacing: -0.06667em;
    color: #F4EDE5 !important;
    margin: 0 0 12px 0;
    height: 22px;
    text-align: left;
}

/* ==========================================================================
   BUTTON STYLES - UNIFIED FOR ALL CARDS
   ========================================================================== */
.product-card .btn,
.product-card .btn--white,
.product-card--seasonal .btn,
.product-card--seasonal .btn--white,
.product-card--default .btn,
.product-card--default .btn--white {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    height: 36px;
    border: none;
    border-radius: 18px;
    padding: 0 16px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    text-align: center;
    line-height: 1;
    /* UNIFIED BUTTON STYLING: Always white background with green text */
    background: #FFFFFF !important;
    color: #2A5B55 !important;
}

.product-card .btn:hover,
.product-card .btn--white:hover,
.product-card--seasonal .btn:hover,
.product-card--seasonal .btn--white:hover,
.product-card--default .btn:hover,
.product-card--default .btn--white:hover {
    background: #f0f0f0 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card .btn--unavailable,
.product-card--seasonal .btn--unavailable,
.product-card--default .btn--unavailable {
    background: #999999 !important;
    color: #FFFFFF !important;
    cursor: not-allowed;
}

.product-card .btn--unavailable:hover,
.product-card--seasonal .btn--unavailable:hover,
.product-card--default .btn--unavailable:hover {
    background: #999999 !important;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   CATALOG AND SECTION OVERRIDES
   Force unified styling in all contexts
   ========================================================================== */

/* Catalog section - force unified styling */
.catalog .product-card,
.catalog .product-card--seasonal,
.catalog .product-card--default {
    background: #2A5B55 !important;
    color: #FFFFFF !important;
}

.catalog .product-card .product-card__title,
.catalog .product-card .product-card__code,
.catalog .product-card .product-card__price,
.catalog .product-card .product-card__rating {
    color: #F4EDE5 !important;
}

.catalog .product-card .product-card__code {
    color: rgba(244, 237, 229, 0.9) !important;
}

.catalog .btn--white,
.catalog .btn {
    background-color: #FFFFFF !important;
    color: #2A5B55 !important;
    border: none !important;
}

/* Products section - force unified styling */
.products .product-card,
.products .product-card--seasonal,
.products .product-card--default {
    background: #2A5B55 !important;
    color: #FFFFFF !important;
}

.products .product-card .product-card__title,
.products .product-card .product-card__code,
.products .product-card .product-card__price,
.products .product-card .product-card__rating {
    color: #F4EDE5 !important;
}

.products .product-card .product-card__code {
    color: rgba(244, 237, 229, 0.9) !important;
}

.products .btn--white,
.products .btn {
    background-color: #FFFFFF !important;
    color: #2A5B55 !important;
    border: none !important;
}

/* Seasonal products section - force unified styling */
.products--seasonal .product-card,
.products--seasonal .product-card--seasonal,
.products--seasonal .product-card--default {
    background: #2A5B55 !important;
    color: #FFFFFF !important;
}

.products--seasonal .product-card .product-card__title,
.products--seasonal .product-card .product-card__code,
.products--seasonal .product-card .product-card__price,
.products--seasonal .product-card .product-card__rating {
    color: #F4EDE5 !important;
}

.products--seasonal .product-card .product-card__code {
    color: rgba(244, 237, 229, 0.9) !important;
}

.products--seasonal .btn--white,
.products--seasonal .btn {
    background-color: #FFFFFF !important;
    color: #2A5B55 !important;
    border: none !important;
}

/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */
.products-grid {
    display: grid;
    gap: 24px;
}

.products-grid--4-col {
    grid-template-columns: repeat(4, 1fr);
}

.products-grid--3-col {
    grid-template-columns: repeat(3, 1fr);
}

.products-grid--2-col {
    grid-template-columns: repeat(2, 1fr);
}

.products-grid--1-col {
    grid-template-columns: 1fr;
}

/* Responsive grid adjustments */
@media (max-width: 1024px) {
    .products-grid--4-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid--4-col,
    .products-grid--3-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid--4-col,
    .products-grid--3-col,
    .products-grid--2-col {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ACCESSIBILITY & PERFORMANCE
   ========================================================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card *,
    .product-card--seasonal,
    .product-card--seasonal *,
    .product-card--default,
    .product-card--default * {
        transition: none;
        animation: none;
    }
}
