/* 
    SUCHIHI Premium Theme 
    Modern, Clean, High-Performance
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Premium Editorial */
    --color-bg: #FAFAFA;
    /* Slightly off-white for less eye strain */
    --color-surface: #FFFFFF;
    --color-text-main: #1A1A1A;
    /* Almost Black */
    --color-text-muted: #666666;
    --color-accent: #2D3436;
    /* Deep Charcoal for buttons */
    --color-accent-hover: #000000;
    --color-border: #E5E5E5;

    /* Functional Colors */
    --color-success: #10B981;
    --color-error: #EF4444;

    /* Spacing & Layout */
    --container-width: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows (Subtle/Premium) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

    /* Fonts */
    --font-main: 'Outfit', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Micro-Components */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.text-muted {
    color: var(--color-text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.btn-outline:hover {
    border-color: var(--color-accent);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-border);
}

.product-image-wrapper {
    aspect-ratio: 3/4;
    /* Fashion standard ratio */
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.25rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 600;
    color: var(--color-text-main);
}

.price-range {
    font-size: 0.9em;
    color: var(--color-text-muted);
}

/* Product Detail Page */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.product-gallery {
    position: sticky;
    top: 2rem;
}

.main-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f0f0f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding-top: 1rem;
}

.pd-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.pd-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 2rem;
}

.pd-description {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Attributes */
.attribute-group {
    margin-bottom: 1.5rem;
}

.attribute-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.swatch-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Size Buttons */
.option-btn {
    min-width: 48px;
    height: 48px;
    padding: 0 1rem;
    border: 1px solid var(--color-border);
    background: white;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: var(--color-accent);
}

.option-btn.selected {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.option-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    text-decoration: line-through;
}

/* Color Circles */
.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    cursor: pointer;
    position: relative;
    padding: 0;
}

.color-btn::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.color-btn.selected::after {
    opacity: 1;
}

/* Actions */
.add-to-cart-section {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.quantity-input {
    width: 80px;
    padding: 0 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    text-align: center;
}

.btn-full {
    flex: 1;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}