/* FunkArt Global Stylesheet & Reset */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #FF5722;
    --primary-hover: #E64A19;
    --primary-light: #FFE0D6;
    --white: #FFFFFF;
    --black: #111111;
    --dark-gray: #333333;
    --medium-gray: #777777;
    --light-gray: #F5F5F5;
    --border-color: #E5E5E5;
    
    /* RGB for alphas */
    --primary-rgb: 255, 87, 34;
    --black-rgb: 17, 17, 17;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Shadow */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(255, 87, 34, 0.15);
    
    /* Grid/Layout */
    --container-width: 1280px;
    --header-height: 80px;
    
    /* Transition */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    outline: none;
}

/* Global Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--black);
    color: var(--black);
}

.btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-orange {
    background-color: var(--primary);
    color: var(--white);
}

.badge-dark {
    background-color: var(--black);
    color: var(--white);
}

.badge-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* Utility Layouts */
.section {
    padding: 80px 0;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-subtitle {
    color: var(--medium-gray);
    font-size: 1rem;
}

/* Forms styling */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
}

/* Rating Stars */
.rating-stars {
    color: #FFB300;
    font-size: 0.9rem;
}

/* Modals global */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--white);
    max-width: 900px;
    width: 90%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--black);
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .btn {
        padding: 12px 24px;
    }
}

/* Product Cards Grid & Design */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 125%; /* 4:5 aspect ratio */
    background-color: var(--light-gray);
    overflow: hidden;
}

.product-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card-image.hover-img {
    opacity: 0;
    z-index: 1;
}

.product-card:hover .product-card-image.hover-img {
    opacity: 1;
}

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

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
    background-color: var(--primary);
    color: var(--white);
}

.product-action-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 12px;
    z-index: 10;
    display: flex;
    gap: 8px;
    transition: var(--transition);
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.product-card:hover .product-action-overlay {
    bottom: 0;
}

.product-action-btn {
    flex: 1;
    background-color: var(--white);
    color: var(--black);
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-action-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.product-action-btn.quick-btn {
    background-color: var(--black);
    color: var(--white);
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-action-btn.quick-btn:hover {
    background-color: var(--primary);
}

.product-card-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: 0.75rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.product-card-title:hover {
    color: var(--primary);
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.product-card-reviews {
    color: var(--medium-gray);
}

.product-card-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.product-card-original-price {
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-decoration: line-through;
}

.product-card-discount {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4CAF50;
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll To Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    transform: translateY(10px);
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background-color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
