/* ========================================
   zvjewels - Premium Jewelry Website Styles
   Clean, modern, luxury feel
   ======================================== */

/* CSS Variables */
:root {
    --gold: #c5a47e;
    --gold-dark: #a8895e;
    --gold-light: #e8dcc8;
    --black: #1a1a1a;
    --dark-gray: #2d2d2d;
    --medium-gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

/* ========================================
   Layout Container
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--black);
    text-transform: uppercase;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.05);
    position: relative;
    display: inline-block;
}

.brand span {
    color: var(--gold);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 2px;
    text-transform: lowercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--medium-gray);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links .btn {
    padding: 8px 20px;
    font-size: 0.75rem;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    font-size: 1.1rem;
    color: var(--gold-light);
    max-width: 600px;
    margin: 0 auto 30px;
    font-weight: 300;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
}

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

.btn-dark:hover {
    background: var(--dark-gray);
    border-color: var(--dark-gray);
    color: var(--white);
}

.btn-large {
    padding: 18px 48px;
    font-size: 0.9rem;
}

/* ========================================
   Section Title
   ======================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--black);
}

.section-title .subtitle {
    color: var(--medium-gray);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title .divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 16px auto 0;
}

/* ========================================
   Products Grid (Homepage)
   ======================================== */
.products-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

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

.product-card .image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--light-gray);
}

.product-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .image-wrap img {
    transform: scale(1.05);
}

.product-card .info {
    padding: 24px;
}

.product-card .category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 600;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--black);
    min-height: 2.6em;
}

.product-card .price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-gray);
}

/* ========================================
   Product Detail Page
   ======================================== */
.product-detail {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.product-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-image-main {
    background: var(--light-gray);
    border: 1px solid var(--border);
    overflow: hidden;
}

.product-image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-info .category-tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 4px 14px;
    margin-bottom: 20px;
    font-weight: 600;
}

.product-info .detail-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 24px;
}

.product-info .description {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 36px;
    font-size: 0.95rem;
}

/* ========================================
   Forms (Login, Register, Admin)
   ======================================== */
.form-section {
    max-width: 460px;
    margin: 80px auto;
    padding: 0 20px;
}

.form-box {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 48px;
}

.form-box h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.form-box .subtitle {
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 36px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--black);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group input[type="file"] {
    padding: 10px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group .hint {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-top: 6px;
}

.form-box .btn {
    width: 100%;
}

.form-links {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.form-links a {
    color: var(--gold);
    font-weight: 600;
}

.form-links a:hover {
    text-decoration: underline;
}

/* ========================================
   Alerts / Messages
   ======================================== */
.alert {
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    border-left: 3px solid;
}

.alert-success {
    background: #f0f7ed;
    border-color: #7ab55c;
    color: #4a7c36;
}

.alert-error {
    background: #fdf2f2;
    border-color: #e74c3c;
    color: #c0392b;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 50px 20px 20px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.footer-brand span {
    color: var(--gold);
}

.footer-about {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--gold-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #999;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* ========================================
   Admin Panel Styles
   ======================================== */
.admin-header {
    background: var(--black);
    color: var(--white);
    padding: 0 20px;
}

.admin-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.admin-header .brand {
    color: var(--white);
    font-size: 1.3rem;
}

.admin-nav {
    display: flex;
    gap: 6px;
}

.admin-nav a {
    color: #bbb;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 14px;
    border-radius: 4px;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--gold);
    background: rgba(255,255,255,0.05);
}

.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 32px 28px;
    text-align: center;
}

.stat-card .number {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--medium-gray);
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--border);
    margin-top: 24px;
}

.admin-table th,
.admin-table td {
    padding: 16px 18px;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--light-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    color: var(--medium-gray);
}

.admin-table tr:hover td {
    background: #fafafa;
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .actions a {
    font-size: 0.75rem;
    padding: 6px 12px;
    border: 1px solid var(--border);
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table .actions a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.admin-table .actions a.delete:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Admin product image thumbnail */
.thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* ========================================
   Impressum / Content Pages
   ======================================== */
.content-page {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.content-page h1 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.content-page h2 {
    font-size: 1.2rem;
    margin: 30px 0 12px;
    color: var(--gold-dark);
}

.content-page p {
    margin-bottom: 14px;
    color: var(--medium-gray);
    line-height: 1.7;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .header-inner {
        height: auto;
        padding: 16px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .product-detail-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .admin-header-inner {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 12px;
    }

    .admin-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }

    .form-box {
        padding: 28px;
    }
}

/* ========================================
   Cookie Popup
   ======================================== */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--black);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transition: bottom 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-popup .cookie-content {
    max-width: 800px;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}

.cookie-popup .cookie-content a {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-popup .cookie-actions {
    display: flex;
    gap: 15px;
}

.cookie-popup .btn-accept {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-popup .btn-accept:hover {
    background: var(--gold-dark);
}

@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
    }
}

/* ========================================
   Contact Page Styles
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info-card {
    background: var(--light-gray);
    padding: 40px;
    border-top: 4px solid var(--gold);
}

.contact-info-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info-card p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.contact-info-card i {
    color: var(--gold);
    font-size: 1.2rem;
}

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

.cookie-popup .btn-reject {
    background: transparent;
    color: #999;
    border: 1px solid #666;
    padding: 10px 24px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-popup .btn-reject:hover {
    color: var(--white);
    border-color: var(--white);
}

.legal-inline a {
    transition: var(--transition);
}

.legal-inline a:hover {
    color: var(--gold) !important;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .legal-inline a {
        margin: 0 8px !important;
    }
}

/* ========================================
   Page Loader Effect
   ======================================== */
.loader-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(197, 164, 126, 0.2); /* Light gold border */
    border-top: 3px solid var(--gold); /* Solid gold border for the spinning part */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
