/**
 * Product Cards Styles
 * Core product card components, grids, and page-specific variants
 */

.products-showcase {
    padding: 80px 0;
    background: var(--background-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
    justify-content: center;
}

.product-card-premium {
    background: var(--background-white);
    border-radius: var(--radius-xxl);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 107, 53, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

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

.product-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.02) 0%, rgba(45, 74, 53, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 20px 60px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 107, 53, 0.12);
}

.product-card-premium:hover::before {
    opacity: 1;
}

.product-image-premium {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.product-image-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.02) contrast(1.05) saturate(1.1);
}

.product-card-premium:hover .product-image-premium img {
    transform: scale(1.08);
}

.product-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    opacity: 0.8;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1.25rem;
    line-height: 1.25;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.product-description {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    min-height: 80px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.product-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(45, 74, 53, 0.05) 100%);
    border: 1px solid rgba(255, 107, 53, 0.12);
    border-radius: var(--radius-xxl);
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    font-family: var(--font-body);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.product-feature:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(45, 74, 53, 0.08) 100%);
    border-color: rgba(255, 107, 53, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}

.product-feature i {
    font-size: 0.75rem;
    opacity: 0.9;
}

.add-to-cart-btn-simple {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #2d5a27;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.2);
}

.add-to-cart-btn-simple:hover {
    background: #3d7a37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

.add-to-cart-btn-simple:active {
    transform: translateY(0);
}

.add-to-cart-btn-simple:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    text-align: center;
    letter-spacing: -0.02em;
}


.why-choose-section {
    margin-top: 4rem;
    padding: 3rem 0;
    background: var(--background-light);
    border-radius: var(--radius-xl);
}

.why-choose-content h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-family: var(--heading-font);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-choose-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 15px var(--shadow-light);
}

.why-choose-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.25rem;
}

.why-choose-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-family: var(--heading-font);
}

.why-choose-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: var(--default-font);
}

/* ===== ALTERNATIVE STYLES FOR DIFFERENT PRODUCT TYPES ===== */

/* Alternative product card styling for gummies */
.gummies-page .product-card-premium {
    background: var(--background-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.gummies-page .product-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow-medium);
}

.gummies-page .product-image-premium {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.gummies-page .product-image-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gummies-page .product-card-premium:hover .product-image-premium img {
    transform: scale(1.05);
}

.product-image-standard {
    object-fit: cover;
    height: 250px;
}

.product-image-contained {
    object-fit: contain;
    height: 220px;
    width: 220px;
    margin: 0 auto;
    display: block;
    background: var(--background-light);
    border-radius: var(--radius-sm);
}

/* Mobile shop grids fix */
@media (max-width: 767.98px) {
  .product-grid, .cards-grid, .features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
