/* Fonts & Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    --primary: #222;
    --accent: #d4a373;
    --bg-light: #fdfbf7;
    --white: #ffffff;
    --text: #4a4a4a;
    --text-light: #888;
    --border: #e5e5e5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-family: 'Playfair Display', serif;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: var(--white);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to bottom, #fff, var(--bg-light));
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--primary);
}

.btn-secondary:hover {
    background: #e5e5e5;
}

.btn-danger {
    background: #ef476f;
    color: white;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    padding-bottom: 80px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 0, 0, 0.03);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f8f8f8;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    background: var(--white);
    padding: 0;
    margin-top: 40px;
}

.detail-image {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-info {
    padding: 20px 0;
}

.detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.detail-price {
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
}

.detail-desc {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* Forms & Admin */
input,
textarea,
select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #fff;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background: #f9f9f9;
    padding: 16px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #eee;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* Footer */
footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 60px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-light);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
}