﻿:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #000000;
    --gray-light: #f4f4f4;
    --gray-medium: #888888;
    --border-color: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-color);
    text-transform: uppercase;
    text-decoration: none;
    z-index: 1002;
}

.logo-bold {
    font-weight: 800;
}

.desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .desktop-nav {
        display: block;
    }
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-medium);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links li a:hover {
    color: var(--text-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn,
.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s;
    background: none;
    border: none;
    position: relative;
    padding: 5px;
}

.icon-btn:hover,
.cart-btn:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.cart-btn svg,
.icon-btn svg {
    stroke-width: 1.5px;
}

#cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--text-color);
    color: white;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 80px 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-drawer.active {
    right: 0;
}

.drawer-header {
    position: absolute;
    top: 25px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.mobile-nav-links li a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hero-modern {
    height: 90vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #fdfbf7 0%, #f5f5f7 100%);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9IjAuMDIiPjxjaXJjbGUgY3g9IjEwMCIgY3k9IjEwMCIgcj0iMSIvPjwvZz48L3N2Zz4=');
    mask-image: radial-gradient(circle, #000 0%, transparent 80%);
    opacity: 0.5;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeUp 1s ease-out;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 25px;
    color: #111;
    background: -webkit-linear-gradient(45deg, #111, #444);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #555;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.btn-hero {
    display: inline-block;
    padding: 16px 40px;
    background: #000;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-modern {
        height: 80vh;
    }
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--gray-medium);
    margin-bottom: 30px;
    max-width: 400px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.hero-image-placeholder {
    width: 50%;
    height: 400px;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    border: 1px dashed var(--gray-medium);
    font-size: 0.9rem;
}

.collection {
    padding: 120px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-bar {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 250px;
}

.category-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
    text-align: left;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;

}

.product-card {
    background: white;
    padding: 0;
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    border: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;

    background-color: var(--gray-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;

}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);

}

.out-of-stock {
    opacity: 0.8;
}

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 2px;
    z-index: 10;
}

.product-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    justify-content: space-between;

    padding-bottom: 10px;
}

.btn-add:disabled {
    cursor: not-allowed;
    border-color: #eee;
    color: #ccc;
}

.btn-add:disabled:hover {
    background: transparent;
    color: #ccc;
    letter-spacing: 1px;
}

.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.toast {
    background: #000;
    color: #fff;
    padding: 16px 24px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.4s;
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.fade-out {
    transform: translateX(100%);
    opacity: 0;
}

.product-info {
    text-align: center;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 25px;
}

.btn-add {
    background: transparent;
    border: 1.5px solid var(--text-color);
    color: var(--text-color);
    padding: 14px 28px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: var(--text-color);
    color: white;
    letter-spacing: 2px;
}

.footer {
    background: #000000;
    color: #ffffff;
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.8;
    max-width: 300px;
}

.footer-group h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-group a {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-group a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-social h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #111;
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background: #fff;
    color: #000;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #555;
}

.powered-by {
    color: #888;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.powered-by span {
    color: #fff;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image-placeholder {
        width: 100%;
        height: 300px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .nav {
        display: none;
    }
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.btn-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;

    bottom: auto;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.2s;
    z-index: 20;
}

.btn-fav:hover {
    transform: scale(1.1);
    background: #f8f8f8;
}

.btn-fav svg {
    transition: fill 0.2s, stroke 0.2s;
}

#favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-view {
    background: #e9ecef;
    color: #495057;
}

.btn-view:hover {
    background: #dee2e6;
    color: #212529;
}

.btn-cancel {
    background: #fff;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.btn-cancel:hover {
    background: #ff6b6b;
    color: white;
}

.btn-delete {
    background: #fa5252;
    color: white;
}

.btn-delete:hover {
    background: #c92a2a;
}

.admin-status-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.8rem;
    background-color: #fff;
    cursor: pointer;
    font-family: inherit;
    color: #333;
    outline: none;
    transition: all 0.2s;
}

.admin-status-select:focus {
    border-color: #000;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: #000000;
    color: #ffffff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px 0;
    margin-top: 15px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
}

.dropdown-header .user-email {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
}

.dropdown-header .user-role {
    font-size: 0.7rem;
    color: #888;
}

.dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    transition: 0.3s;
    cursor: pointer;
    color: #ffffff !important;
    text-decoration: none;
}

.dropdown-item:hover {
    background: #1a1a1a;
    color: #ffffff !important;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    stroke: #888;
}

.dropdown-item:hover svg {
    stroke: #fff;
}

.dropdown-divider {
    height: 1px;
    background: #333;
    margin: 10px 0;
}

.dropdown-item.logout {
    color: #ff4d4d;
}

.dropdown-item.logout svg {
    stroke: #ff4d4d;
}
