/* Main CSS for Peravestir.es Application */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --terracota: #B85A30;
    --terracota-fosc: #7A3318;
    --terracota-clar: #FAECE7;
    --daurat: #C9962A;
    --daurat-clar: #F0C96A;
    --crema: #FAF5EE;
    --text-fosc: #2A1508;
}

body {
    background-color: var(--crema);
    color: var(--text-fosc);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
}

/* Titles - Playfair Display, Georgia, serif */
h1, h2, h3, h4, h5, h6,
.product-title, .description-title, .seller-title,
.breadcrumb-item, .btn-edit, .btn-delete,
.product-price-large, .product-location {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Pattern background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 28px, rgba(185,90,48,0.04) 28px, rgba(185,90,48,0.04) 29px),
        repeating-linear-gradient(-45deg, transparent, transparent 28px, rgba(185,90,48,0.04) 28px, rgba(185,90,48,0.04) 29px);
    pointer-events: none;
    z-index: 0;
}

/* Diamond pattern SVG */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpolygon points='30,4 56,30 30,56 4,30' fill='none' stroke='%23B85A30' stroke-width='0.4' opacity='0.12'/%3E%3Cpolygon points='30,16 44,30 30,44 16,30' fill='none' stroke='%23B85A30' stroke-width='0.3' opacity='0.08'/%3E%3Ccircle cx='30' cy='30' r='2' fill='%23C9962A' opacity='0.1'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    max-width: 680px;
    width: 100%;
}

/* Auth Container - for login/register forms */
.auth-container {
    position: relative;
    z-index: 1;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Auth Page Container - for unified login/register page */
.auth-page-container {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-page-container .auth-form {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    max-width: 100%;
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    align-items: center;
}

.auth-page-container .auth-form > div {
    flex: 1;
}

.auth-page-container .auth-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--terracota-fosc);
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-page-container .auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-page-container .auth-form label {
    display: block;
    color: var(--text-fosc);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-page-container .auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-family: 'Cormorant Garamond', serif;
}

.auth-page-container .auth-form input:focus {
    outline: none;
    border-color: var(--daurat);
}

.auth-page-container .auth-form button {
    width: 100%;
    background: var(--terracota);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-page-container .auth-form button:hover {
    background: var(--terracota-fosc);
}

/* Animations */
@keyframes apareixer {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-appear {
    animation: apareixer 1.4s ease both;
}

/* Ornament */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.ornament-line {
    height: 1px;
    width: 80px;
    background: linear-gradient(to right, transparent, var(--daurat));
}

.ornament-line.right {
    background: linear-gradient(to left, transparent, var(--daurat));
}

.ornament-diamond {
    width: 8px;
    height: 8px;
    background: var(--daurat);
    transform: rotate(45deg);
}

.ornament-dot {
    width: 4px;
    height: 4px;
    background: var(--daurat-clar);
    transform: rotate(45deg);
}

/* Fabric strip */
.tela {
    position: relative;
    background: var(--terracota);
    padding: 1.4rem 2.5rem;
    margin: 0 auto 2.5rem;
    overflow: hidden;
}

.tela::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpolygon points='20,2 38,20 20,38 2,20' fill='none' stroke='%23FAC775' stroke-width='0.7' opacity='0.25'/%3E%3Cpolygon points='20,10 30,20 20,30 10,20' fill='none' stroke='%23FAC775' stroke-width='0.5' opacity='0.18'/%3E%3Ccircle cx='20' cy='20' r='1.2' fill='%23FAC775' opacity='0.2'/%3E%3C/svg%3E");
}

.tela-border {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--daurat), var(--daurat-clar), var(--daurat), transparent);
}

.tela-border.top { top: 0; }
.tela-border.bottom { bottom: 0; }

.logo-text {
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--crema);
    letter-spacing: 0.06em;
    line-height: 1;
}

/* Tagline */
.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--terracota);
    margin-bottom: 3rem;
}

/* Proximament */
.proximament-wrap {
    margin-bottom: 2.5rem;
}

.proximament {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-style: italic;
    font-weight: 400;
    color: var(--terracota-fosc);
    letter-spacing: 0.08em;
}

.proximament strong {
    font-style: normal;
    font-weight: 700;
    color: var(--terracota);
}

/* Bottom ornament */
.ornament-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ornament-bottom-line {
    height: 1px;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--daurat));
}

.ornament-bottom-line.right {
    background: linear-gradient(to left, transparent, var(--daurat));
}

.domini {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--daurat);
    font-weight: 300;
}

/* Login/Register forms specific styles */
.auth-container {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.auth-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--terracota-fosc);
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    color: var(--text-fosc);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-family: 'Cormorant Garamond', serif;
}

.auth-form input:focus {
    outline: none;
    ring: 2px solid var(--daurat);
}

.auth-form button {
    width: 100%;
    background: var(--terracota);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-form button:hover {
    background: var(--terracota-fosc);
}

.auth-link {
    color: var(--terracota);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Language switcher */
.lang-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
}

.lang-switcher select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--daurat);
    background: white;
    color: var(--text-fosc);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpolygon points='0,0 12,0 6,12' fill='%23B85A30'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px;
    min-width: 80px;
}

.lang-switcher select:focus {
    outline: none;
    border-color: var(--terracota);
}

/* Notifications */
.notification {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.notification.success {
    background: #d1fae5;
    border: 1px solid #34d399;
    color: #065f46;
}

.notification.error {
    background: #fee2e2;
    border: 1px solid #f87171;
    color: #991b1b;
}

.notification ul {
    list-style-position: inside;
    margin-top: 0.5rem;
}

.notification li {
    margin-bottom: 0.25rem;
}

/* Utility classes */
.text-terracota { color: var(--terracota); }
.bg-terracota { background-color: var(--terracota); }
.text-daurat { color: var(--daurat); }
.bg-daurat { background-color: var(--daurat); }
.text-crema { color: var(--crema); }
.bg-crema { background-color: var(--crema); }

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    .auth-page-container {
        padding: 1rem;
    }

    .auth-page-container .auth-form {
        flex-direction: column;
    }

    .auth-page-container .auth-form > div {
        border-right: none;
        border-bottom: 2px solid var(--terracota);
        padding-right: 0;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .auth-form h2 {
        font-size: 1.5rem;
    }

    .ornament-line,
    .ornament-bottom-line {
        width: 50px;
    }

    .logo-text {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
}

/* ========================================
   Global Navigation Bar
   ======================================== */
.global-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    border-bottom: 2px solid var(--terracota);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.global-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.nav-logo {
    flex-shrink: 0;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-fosc);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 0;
}

.nav-logo-text {
    color: var(--terracota);
}

.nav-logo svg {
    width: 40px;
    height: 40px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 800px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text-fosc);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-toggle:hover {
    background-color: var(--terracota-clar);
    color: var(--terracota-fosc);
}

.dropdown-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Dropdown Content */
.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: white;
    border: 1px solid var(--terracota-clar);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s;
}

.nav-dropdown-content a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-fosc);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
}

.nav-dropdown-content a:hover {
    background-color: var(--terracota-clar);
    color: var(--terracota-fosc);
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Language Selector */
.nav-lang-switcher {
    flex-shrink: 0;
}

.nav-lang-switcher select {
    padding: 0.5rem 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--text-fosc);
    border: 2px solid var(--terracota);
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B85A30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 14px;
    padding-right: 2rem;
}

.nav-lang-switcher select:hover {
    background-color: var(--terracota-clar);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .nav-logo a {
        font-size: 1.2rem;
    }
    
    .nav-logo svg {
        width: 32px;
        height: 32px;
    }
}

/* Dashboard Link in Navigation Bar */
.nav-dashboard-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s, transform 0.2s;
    color: var(--terracota-fosc);
}

.nav-dashboard-link:hover {
    background-color: var(--terracota-clar);
    transform: scale(1.1);
}

.nav-dashboard-link svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .global-nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo a {
        font-size: 1rem;
    }
    
    .nav-logo svg {
        width: 28px;
        height: 28px;
    }
}

/* ========================================
   New Navigation Styles (Welcome Page)
   ======================================== */
:root {
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --color-background-primary: #FFFFFF;
  --color-background-secondary: #F9F5EF;
  --color-background-tertiary: #F3EFE9;
  --color-text-primary: #2A1508;
  --color-text-secondary: #5A4028;
  --color-text-tertiary: #8A6B48;
  --color-border-secondary: #DAC5B0;
  --color-border-tertiary: #C4B098;
}

.nav-container { max-width: 1375px; margin: 0 auto; padding: 0 32px; }

/* NAV */
.nav { background: var(--color-background-primary); border-bottom: 0.5px solid var(--color-border-tertiary); height: 64px; }
.nav-content { max-width: 1375px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 10px 32px; }
.nav-logo { font-family: Georgia, serif; font-size: 20px; font-weight: 700; color: #4A1B0C; white-space: nowrap; text-decoration: none; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-logo span { color: #B85A30; }
.nav-search { flex: 1; display: flex; align-items: center; gap: 0; background: var(--color-background-secondary); border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); overflow: hidden; height: 42px; min-width: 0; }
.nav-search input { border: none; background: transparent; flex: 1; padding: 0 14px; font-size: 14px; color: var(--color-text-primary); outline: none; }
.nav-search select { border: none; border-left: 0.5px solid var(--color-border-tertiary); background: transparent; padding: 0 12px; font-size: 13px; color: var(--color-text-secondary); outline: none; height: 100%; }
.nav-search-btn { background: #B85A30; color: #fff; border: none; padding: 0 18px; font-size: 13px; height: 100%; cursor: pointer; white-space: nowrap; }
.nav-links { display: flex; gap: 20px; font-size: 14px; color: var(--color-text-secondary); white-space: nowrap; }
.nav-btn { background: #B85A30; color: #fff; border: none; border-radius: var(--border-radius-md); padding: 9px 18px; font-size: 14px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.nav-btn-out { background: transparent; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); padding: 9px 16px; font-size: 14px; color: var(--color-text-primary); cursor: pointer; white-space: nowrap; flex-shrink: 0; }

/* Language Switcher */
.nav-lang-switcher { flex-shrink: 0; }
.nav-lang-switcher select {
    padding: 9px 16px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--color-text-primary);
    border: 0.5px solid var(--color-border-secondary);
    border-radius: var(--border-radius-md);
    background-color: var(--color-background-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B85A30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 32px;
}
.nav-lang-switcher select:hover { background-color: var(--color-background-secondary); }

/* CATS NAV */
.cats-nav { background: var(--color-background-primary); border-bottom: 0.5px solid var(--color-border-tertiary); position: relative; z-index: 999; overflow: visible !important; }
.cats-nav-content { max-width: 1375px; margin: 0 auto; display: flex; gap: 4px; padding: 0 32px; overflow: visible !important; }
.cat-tab { padding: 12px 16px; font-size: 14px; color: var(--color-text-secondary); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; position: relative; overflow: visible !important; }
.cat-tab.active { color: #B85A30; border-bottom: 2px solid #B85A30; font-weight: 500; }

/* Dropdown */
.dropdown { position: relative; overflow: visible !important; }
.dropdown-toggle { cursor: pointer; padding-right: 24px; }
.dropdown-toggle::after { content: ''; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid #B85A30; }
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 200px; background: white; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); padding: 8px 0; z-index: 1000; display: none; }
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; padding: 10px 16px; color: var(--color-text-primary); text-decoration: none; font-size: 14px; cursor: pointer; white-space: nowrap; }
.dropdown-item:hover { background-color: var(--color-background-secondary); color: #B85A30; }
.dropdown:hover .dropdown-menu { display: block; }

/* Responsive */
@media (max-width: 900px) {
  .nav { flex-direction: column; height: auto; }
  .nav-content { padding: 12px 16px; gap: 12px; flex-direction: column; }
  .nav-search { width: 100%; }
  .nav-lang-switcher { order: 1; }
  .cats-nav-content { padding: 0 16px; }
}

/* PUBLISH FORM */
.publish-section { padding: 64px 32px; max-width: 900px; margin: 0 auto; }
.publish-section-title { font-size: 20px; font-weight: 500; margin-bottom: 24px; color: var(--color-text-primary); border-bottom: 1px solid var(--color-border-secondary); padding-bottom: 12px; }
.publish-container { background: white; padding: 32px; border-radius: var(--border-radius-lg); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.page-title { font-size: 28px; font-weight: 500; margin-bottom: 32px; color: var(--color-text-primary); text-align: center; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--color-text-primary); }
.required { color: #B85A30; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--color-text-primary); border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); background-color: var(--color-background-primary); transition: border-color 0.2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: #B85A30; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { margin-top: 8px; font-size: 13px; color: #e74c3c; }
.form-row { display: flex; gap: 20px; }
.form-col { flex: 1; }

.btn-primary { display: inline-block; padding: 14px 32px; font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 500; color: white; background-color: #B85A30; border: none; border-radius: var(--border-radius-md); cursor: pointer; transition: background-color 0.2s; }
.btn-primary:hover { background-color: #7A3318; }
.btn-primary:active { transform: translateY(1px); }

/* PHOTOS SECTION */
.photos-section { margin-top: 32px; }
.photos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.photo-upload { position: relative; }
.photo-upload-area { position: relative; width: 100%; padding-top: 100%; border: 1px dashed var(--color-border-secondary); border-radius: var(--border-radius-md); overflow: hidden; transition: border-color 0.2s; cursor: pointer; }
.photo-upload-area:hover { border-color: #B85A30; }
.photo-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-label { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--color-text-secondary); font-size: 12px; transition: all 0.2s; }
.photo-icon { font-size: 32px; margin-bottom: 8px; opacity: 0.5; }
.photo-text { opacity: 0.5; }
.photo-number { position: absolute; bottom: 8px; right: 8px; font-size: 10px; opacity: 0.3; background: rgba(255, 255, 255, 0.8); padding: 2px 6px; border-radius: 4px; }
.photos-hint { margin-top: 16px; font-size: 13px; color: var(--color-text-secondary); text-align: center; }

/* EDIT PRODUCT STYLES */
.photo-existing { position: relative; }
.photo-existing .photo-upload-area { position: relative; width: 100%; padding-top: 100%; border: 1px dashed var(--color-border-secondary); border-radius: var(--border-radius-md); overflow: hidden; transition: border-color 0.2s; cursor: pointer; }
.photo-existing .preview-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; z-index: 1; }
.photo-existing .photo-upload-area:hover { border-color: #B85A30; }
.photo-existing .preview-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; z-index: 1; pointer-events: none; }
.photo-existing .photo-delete { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: background 0.2s; z-index: 100; }
.photo-existing .photo-delete:hover { background: rgba(0,0,0,0.8); }
.featured-badge { position: absolute; top: 8px; right: 8px; background: #B85A30; color: white; padding: 4px 8px; font-size: 10px; border-radius: 4px; text-transform: uppercase; }

.btn-secondary { display: inline-block; padding: 14px 32px; font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 500; color: var(--color-text-primary); background-color: var(--color-background-secondary); border: none; border-radius: var(--border-radius-md); cursor: pointer; transition: background-color 0.2s; text-decoration: none; }
.btn-secondary:hover { background-color: var(--color-border-secondary); }

.publish-actions { display: flex; gap: 16px; justify-content: center; margin-top: 32px; }
.publish-actions .btn-secondary { background-color: var(--color-background-secondary); color: var(--color-text-primary); }
.publish-actions .btn-secondary:hover { background-color: var(--color-border-secondary); }
.publish-actions .btn-primary { background-color: #B85A30; color: white; }
.publish-actions .btn-primary:hover { background-color: #7A3318; }

@media (max-width: 768px) {
  .publish-section { padding: 32px 16px; }
  .photos-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-direction: column; gap: 0; }
}

/* PRODUCT DETAIL PAGE */
.product-detail-section { padding: 32px; max-width: 1200px; margin: 0 auto; }
.product-container { background: white; padding: 32px; border-radius: var(--border-radius-lg); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.product-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--color-border-secondary); }
.back-btn { color: var(--color-text-primary); text-decoration: none; font-size: 16px; transition: color 0.2s; }
.back-btn:hover { color: #B85A30; }
.product-actions { display: flex; gap: 8px; }
.btn-edit, .btn-delete {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.btn-edit { background: #3498db; color: white; }
.btn-edit:hover { background: #2980b9; }
.btn-delete { background: #e74c3c; color: white; }
.btn-delete:hover { background: #c0392b; }

.product-title { font-size: 1.2rem; font-weight: 500; margin-bottom: 16px; color: var(--color-text-primary); }
.product-price { font-size: 32px; font-weight: 700; color: #B85A30; margin-bottom: 24px; }
.product-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; font-size: 14px; color: var(--color-text-secondary); }
.location::before, .category::before, .date::before { content: '•'; margin: 0 8px; }
.location { font-weight: 500; }
.category { font-style: italic; }
.date { }

.product-photos { margin-bottom: 32px; }
.main-photo { width: 100%; border-radius: var(--border-radius-md); overflow: hidden; margin-bottom: 16px; }
.main-photo img { width: 100%; height: auto; display: block; }
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
.photo-thumb { border-radius: var(--border-radius-md); overflow: hidden; aspect-ratio: 1; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-description { margin-bottom: 0px; }
.product-description h2 { font-size: 20px; margin-bottom: 16px; color: var(--color-text-primary); }
.product-description p { font-size: 16px; line-height: 1.6; color: var(--color-text-secondary); }

.product-contact { border-top: 1px solid var(--color-border-secondary); padding-top: 32px; }
.product-contact h2 { font-size: 20px; margin-bottom: 16px; color: var(--color-text-primary); }
.seller-info { display: flex; flex-direction: column; gap: 8px; }
.seller-name { font-size: 16px; font-weight: 500; color: var(--color-text-primary); }
.seller-email, .seller-phone { font-size: 14px; color: var(--color-text-secondary); }

@media (max-width: 768px) {
  .product-detail-section { padding: 16px; }
  .product-container { padding: 16px; }
  .product-header { flex-direction: column; gap: 12px; }
  .product-actions { width: 100%; }
  .btn-edit, .btn-delete { flex: 1; }
}
