/* Component CSS - Gaurav Gupta Fashion Partials */

/* ==========================================================================
   Product Card Styles
   ========================================================================== */

/* Standard Product Card */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 0;
    background: var(--gg-white);
}

.product-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--gg-light);
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gg-accent);
    color: var(--gg-white);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.product-card__action {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gg-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.product-card:hover .product-card__action {
    opacity: 1;
    transform: translateY(0);
}

.product-card__action:hover {
    background: var(--gg-primary);
    color: var(--gg-white);
}

.product-card .card-body {
    padding: 1.5rem 1rem 1rem;
}

.product-card__eyebrow {
    color: var(--gg-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.product-card__title {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 400;
    color: var(--gg-primary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.product-card__stats {
    margin-bottom: 1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-rating i {
    font-size: 0.8rem;
}

.product-rating .bi-star-fill {
    color: var(--gg-accent);
}

.product-rating .bi-star {
    color: var(--gg-gray);
}

.product-card__price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card__price .current-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gg-primary);
}

.product-card__price .original-price {
    font-size: 0.9rem;
    color: var(--gg-gray);
    text-decoration: line-through;
}

/* Product Card Simple */
.product-card-simple {
    display: block;
    transition: all 0.3s ease;
}

.product-card-simple:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.product-card-simple .card {
    border-radius: 0;
    overflow: hidden;
}

.product-card-simple__media {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--gg-light);
}

.product-card-simple__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-simple:hover .product-card-simple__media img {
    transform: scale(1.08);
}

.product-card-simple__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--gg-accent);
    color: var(--gg-white);
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.product-card-simple__action {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gg-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.product-card-simple:hover .product-card-simple__action {
    opacity: 1;
    transform: scale(1);
}

.product-card-simple__action:hover {
    background: var(--gg-primary);
    color: var(--gg-white);
}

.product-card-simple .card-body {
    padding: 1rem 0.75rem;
}

.product-card-simple__title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gg-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-card-simple__price .current-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gg-primary);
}

.product-card-simple__price .original-price {
    font-size: 0.85rem;
    color: var(--gg-gray);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* ==========================================================================
   Product List Card Styles
   ========================================================================== */

.product-list-card {
    border: 1px solid var(--gg-light-gray);
    border-radius: 0;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.product-list-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--gg-primary);
}

.product-list-card__media {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--gg-light);
}

.product-list-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-list-card:hover .product-list-card__media img {
    transform: scale(1.05);
}

.product-list-card__body h5 {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--gg-primary);
    margin-bottom: 0.5rem;
}

.product-list-card__brand {
    font-size: 0.8rem;
    color: var(--gg-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-list-card__price {
    margin-bottom: 0.75rem;
}

.product-list-card__price .current-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gg-primary);
}

.product-list-card__price .original-price {
    font-size: 1rem;
    color: var(--gg-gray);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-list-card__actions {
    display: flex;
    gap: 0.5rem;
}

.product-list-card__actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 0;
}

/* ==========================================================================
   Blog Card Styles
   ========================================================================== */

.blog-card {
    border-radius: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card .card-img-top {
    transition: transform 0.4s ease;
    border-radius: 0;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .card-title a {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--gg-primary);
    transition: color 0.3s ease;
}

.blog-card .card-title a:hover {
    color: var(--gg-secondary);
}

.blog-card .card-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gg-secondary);
}

.blog-card .btn-outline-primary {
    border-color: var(--gg-primary);
    color: var(--gg-primary);
    border-radius: 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.blog-card .btn-outline-primary:hover {
    background: var(--gg-primary);
    border-color: var(--gg-primary);
    color: var(--gg-white);
}

/* ==========================================================================
   Term Card Styles (Brands/Categories)
   ========================================================================== */

.term-card {
    border-radius: 0;
    transition: all 0.3s ease;
    text-align: center;
    padding: 2rem 1rem;
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.term-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gg-light);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.term-card:hover img {
    border-color: var(--gg-primary);
    transform: scale(1.1);
}

.term-card h6 {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 400;
    color: var(--gg-primary);
    transition: color 0.3s ease;
    margin: 0;
}

.term-card:hover h6 {
    color: var(--gg-secondary);
}

.term-card__media {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 0;
}

.term-card__body {
    padding: 1.25rem 0.75rem 1rem;
}

.term-card__description {
    font-size: 0.85rem;
    color: var(--gg-secondary);
    line-height: 1.4;
    margin: 0.3rem 0 0;
}

.term-card__meta {
    display: inline-flex;
    background: var(--gg-light);
    color: var(--gg-dark);
    border-radius: 999px;
    padding: 0.2rem 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    margin-top: 0.6rem;
}

.terms-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    color: var(--gg-white);
}

.terms-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.terms-hero__content {
    position: relative;
    z-index: 2;
}

.terms-hero--alt {
    background: var(--gg-light);
    color: var(--gg-dark);
}

.terms-hero--alt .terms-hero__overlay {
    background: none;
}

.terms-hero--alt .terms-hero__content {
    color: var(--gg-dark);
}

.terms-hero--alt h1 {
    color: var(--gg-dark);
}

.term-grid {
    margin-top: 2rem;
}

/* ==========================================================================
   Product Variations Selector Styles
   ========================================================================== */

.variations-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: var(--gg-white);
}

.variations-section h5 {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--gg-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.attribute-selector {
    margin-bottom: 1.5rem;
}

.attribute-selector:last-child {
    margin-bottom: 0;
}

.attribute-selector .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gg-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

/* Dropdown Selector */
.attribute-selector .form-select {
    border: 1px solid var(--gg-light-gray);
    border-radius: 0;
    padding: 0.75rem;
    font-size: 0.9rem;
    background: var(--gg-white);
    color: var(--gg-primary);
}

.attribute-selector .form-select:focus {
    border-color: var(--gg-primary);
    box-shadow: 0 0 0 0.2rem rgba(197, 40, 47, 0.15);
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gg-light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: var(--gg-primary);
}

.color-swatch.active {
    border-color: var(--gg-primary);
    transform: scale(1.1);
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gg-white);
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Size Options */
.size-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.size-option {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gg-light-gray);
    background: var(--gg-white);
    color: var(--gg-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.size-option:hover {
    border-color: var(--gg-primary);
    background: var(--gg-primary);
    color: var(--gg-white);
}

.size-option.active {
    background: var(--gg-primary);
    color: var(--gg-white);
    border-color: var(--gg-primary);
}

.size-option.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Button Swatches */
.button-swatches {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.button-swatch {
    background: var(--gg-white);
    border: 1px solid var(--gg-light-gray);
    color: var(--gg-primary);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button-swatch:hover {
    background: var(--gg-primary);
    color: var(--gg-white);
    border-color: var(--gg-primary);
}

.button-swatch.active {
    background: var(--gg-primary);
    color: var(--gg-white);
    border-color: var(--gg-primary);
}

.button-swatch.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Variation Selection Feedback */
.variation-error {
    color: var(--gg-danger);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

.variation-error.show {
    display: block;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .product-card__media {
        aspect-ratio: 1/1;
    }
    
    .product-list-card {
        flex-direction: column;
        text-align: center;
    }
    
    .product-list-card__media {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .color-swatches,
    .size-options,
    .button-swatches {
        justify-content: center;
    }
    
    .variations-section {
        padding: 1rem;
    }
    
    .term-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .product-card .card-body {
        padding: 1rem 0.75rem;
    }
    
    .product-card__title {
        font-size: 0.9rem;
    }
    
    .blog-card .card-body {
        padding: 1rem;
    }
    
    .color-swatch {
        width: 35px;
        height: 35px;
    }
    
    .size-option {
        width: 40px;
        height: 40px;
    }
}