/* ============================================================
   PRODUCT STYLES - Mobile First Responsive Design
   ============================================================ */

/* Section Styles */
.featured-products-section,
.products-page-section {
    padding: 3rem 1rem;
    background-color: var(--gym-bg-primary, #1a1a1a);
    width:100%
}

.section-header,
.products-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title,
.products-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gym-orange, #d85517);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle,
.products-page-subtitle {
    font-size: 1rem;
    color: var(--gym-text-muted, #888);
    margin: 0;
}

/* Products Grid - Mobile First */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tablet: 2 columns */
@media (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .featured-products-section,
    .products-page-section {
        padding: 4rem 2rem;
    }
    
    .section-title,
    .products-page-title {
        font-size: 2.25rem;
    }
}

/* Large Desktop: 4 columns */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Product Card */
.product-card {
    background: var(--gym-bg-secondary, #242424);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(216, 85, 23, 0.2);
}

.product-card-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background: var(--gym-bg-primary, #1a1a1a);
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.product-card-placeholder i {
    font-size: 3rem;
    color: var(--gym-orange, #d85517);
    opacity: 0.5;
}

.product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gym-white, #fff);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.product-card-description {
    font-size: 0.875rem;
    color: var(--gym-text-muted, #888);
    margin: 0 0 1rem 0;
    line-height: 1.5;
    flex-grow: 1;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.product-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gym-orange, #d85517);
}

/* Add to Basket Button */
.btn-add-to-basket {
    background: var(--gym-orange, #d85517);
    color: var(--gym-white, #fff);
    border: none;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    min-height: 44px; /* Touch-friendly */
}

.btn-add-to-basket:hover {
    background: #e86a2c;
    transform: scale(1.02);
}

.btn-add-to-basket:active {
    transform: scale(0.98);
}

.btn-add-to-basket.added {
    background: #28a745;
}

/* View All Button */
.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--gym-orange, #d85517);
    border: 2px solid var(--gym-orange, #d85517);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 48px;
}

.btn-view-all:hover {
    background: var(--gym-orange, #d85517);
    color: var(--gym-white, #fff);
}

/* Empty State */
.products-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gym-text-muted, #888);
}

.products-empty i {
    font-size: 4rem;
    color: var(--gym-orange, #d85517);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.products-empty h3 {
    font-size: 1.5rem;
    color: var(--gym-white, #fff);
    margin-bottom: 0.5rem;
}

.products-empty p {
    margin: 0;
}

/* ============================================================
   PAGINATION STYLES
   ============================================================ */

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding: 0 1rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    background: var(--gym-bg-secondary, #242424);
    color: var(--gym-white, #fff);
    border: 1px solid var(--gym-border, #333);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-item .page-link:hover {
    background: var(--gym-orange, #d85517);
    border-color: var(--gym-orange, #d85517);
}

.page-item.active .page-link {
    background: var(--gym-orange, #d85517);
    border-color: var(--gym-orange, #d85517);
}

.page-item.disabled .page-link {
    background: var(--gym-bg-primary, #1a1a1a);
    color: var(--gym-text-muted, #666);
    cursor: not-allowed;
    opacity: 0.5;
}

/* ============================================================
   PRODUCT DETAILS PAGE
   ============================================================ */

.product-details-section {
    padding: 2rem 1rem;
    background-color: var(--gym-bg-primary, #1a1a1a);
    min-height: calc(100vh - 200px);
}

.product-details-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .product-details-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .product-details-section {
        padding: 3rem 2rem;
    }
}

.product-details-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gym-bg-secondary, #242424);
}

.product-details-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.product-details-placeholder i {
    font-size: 5rem;
    color: var(--gym-orange, #d85517);
    opacity: 0.5;
}

.product-details-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-details-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gym-white, #fff);
    margin: 0;
}

@media (min-width: 768px) {
    .product-details-title {
        font-size: 2.25rem;
    }
}

.product-details-description {
    font-size: 1rem;
    color: var(--gym-text-muted, #aaa);
    line-height: 1.7;
    margin: 0;
}

.product-details-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gym-orange, #d85517);
}

.btn-add-to-basket-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gym-orange, #d85517);
    color: var(--gym-white, #fff);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 56px;
    width: 100%;
    max-width: 300px;
}

.btn-add-to-basket-large:hover {
    background: #e86a2c;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(216, 85, 23, 0.3);
}

.btn-login-to-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--gym-orange, #d85517);
    border: 2px solid var(--gym-orange, #d85517);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 56px;
    width: 100%;
    max-width: 300px;
}

.btn-login-to-buy:hover {
    background: var(--gym-orange, #d85517);
    color: var(--gym-white, #fff);
}

/* Discount hint on product card */
.product-card-discount-hint {
    text-align: center;
    font-size: 0.7rem;
    color: #fbbf24;
    padding: 0.375rem 0.75rem 0.75rem;
    opacity: 0.85;
}

.product-card-discount-hint a {
    color: #d85517;
    font-weight: 700;
    text-decoration: underline;
}

/* Discount hint on product details page */
.product-details-discount-hint {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #fbbf24;
    max-width: 300px;
}

.product-details-discount-hint a {
    color: #d85517;
    font-weight: 700;
    text-decoration: underline;
}

.btn-back-to-products {
    display: inline-flex;
    align-items: center;
    color: var(--gym-text-muted, #888);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    margin-top: auto;
}

.btn-back-to-products:hover {
    color: var(--gym-orange, #d85517);
}

/* ============================================================
   BASKET ICON STYLES
   ============================================================ */

.basket-icon-link {
    position: relative;
    display: flex;
    align-items: center;
}

.basket-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gym-orange, #d85517);
    color: var(--gym-white, #fff);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.3s ease;
}

.basket-counter.bump {
    animation: basketBump 0.3s ease;
}

@keyframes basketBump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.basket-counter:empty,
.basket-counter[data-count="0"] {
    display: none;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */

.basket-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #28a745;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.basket-toast.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 576px) {
    .basket-toast {
        left: 1rem;
        right: 1rem;
        transform: translateX(0) translateY(100px);
        width: auto;
    }
    
    .basket-toast.show {
        transform: translateX(0) translateY(0);
    }
}
