/* Admin Login Page Styles */
:root {
    --primary-color: #ff7eb9;
    --primary-light: #ffafcc;
    --primary-dark: #e75480;
    --secondary-color: #ffd6e7;
    --white: #ffffff;
    --light-bg: #fff9fb;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #f0e6ea;
    --shadow: 0 5px 20px rgba(255, 126, 185, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
    --danger: #f44336;
    --success: #4CAF50;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 126, 185, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(255, 126, 185, 0.1);
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
}

.logo span {
    font-size: 0.83em;
    line-height: 1;
}

.logo i {
    font-size: 28px;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-color);
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

/* Admin Section */
.admin-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    padding: 150px 0 80px;
    display: flex;
    align-items: center;
}

.admin-container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.admin-box {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.admin-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.admin-logo i {
    font-size: 32px;
}

.admin-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.admin-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.admin-form {
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 126, 185, 0.1);
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    color: #ddd;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-col p,
.footer-col a {
    margin-bottom: 10px;
    display: block;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-col i {
    margin-right: 10px;
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #aaa;
}

/* Унифицированный футер для мобильных */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px !important;
        background-color: #2c2c2c !important;
    }
    
    .footer .container {
        padding: 0 20px !important;
        max-width: 100% !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 !important;
        margin-bottom: 30px !important;
    }
    
    .footer-col {
        text-align: center !important;
        margin-bottom: 30px !important;
        width: 100% !important;
    }
    
    .footer-col:last-child {
        margin-bottom: 0 !important;
    }
    
    .footer-col .logo {
        justify-content: center !important;
        margin-bottom: 15px !important;
    }
    
    .footer-col h3 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
        color: white !important;
        font-weight: 600 !important;
    }
    
    .footer-col p,
    .footer-col a {
        font-size: 14px !important;
        margin-bottom: 10px !important;
        line-height: 1.6 !important;
        color: #ddd !important;
        display: block !important;
    }
    
    .footer-col a {
        transition: color 0.3s ease !important;
    }
    
    .footer-col a:hover {
        color: var(--primary-light) !important;
    }
    
    .footer-col i {
        margin-right: 8px !important;
        font-size: 14px !important;
        color: var(--primary-light) !important;
        width: 18px !important;
        text-align: center !important;
    }
    
    .social-links {
        justify-content: center !important;
        margin-right: 0 !important;
        margin-top: 20px !important;
        gap: 15px !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .social-links a {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
    }
    
    .social-links a:hover {
        background-color: var(--primary-color) !important;
        transform: translateY(-3px) !important;
    }
    
    .footer-bottom {
        text-align: center !important;
        padding-top: 20px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        font-size: 13px !important;
        color: #aaa !important;
        margin-top: 20px !important;
    }
    
    .footer-bottom p {
        margin: 0 !important;
    }
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
}

.cart-modal-content {
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--white);
    padding: 20px;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.close-cart {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}

.close-cart:hover {
    color: var(--text-color);
}

.cart-items {
    min-height: 200px;
}

.cart-total {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    text-align: right;
}

.total-price {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
}

/* Spinner Animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Boutique login — как витрина Sakura */
body.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse 70% 45% at 90% 0%, rgba(255, 175, 204, 0.45), transparent 55%),
        radial-gradient(ellipse 55% 40% at 8% 100%, rgba(255, 214, 231, 0.7), transparent 50%),
        #fff9fb;
    overflow-x: hidden;
}

.login-shell {
    width: 100%;
    max-width: 440px;
}

.login-panel {
    display: flex;
    flex-direction: column;
    padding: 40px 36px 36px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 126, 185, 0.18);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(255, 126, 185, 0.16);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.login-brand img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(255, 126, 185, 0.28);
}

.admin-login-page .admin-title {
    font-size: 26px;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    text-align: center;
}

.admin-login-page .admin-subtitle {
    margin-bottom: 28px;
    text-align: center;
}

.admin-login-page .form-group input {
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
}

.admin-login-page .btn-primary {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff7eb9 0%, #e75480 100%);
    box-shadow: 0 10px 22px rgba(255, 126, 185, 0.28);
}

.login-back {
    display: block;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.login-back:hover {
    color: var(--primary-dark);
}

.login-message {
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .admin-box {
        padding: 30px 20px;
    }
    
    .social-links {
        margin-right: 0;
    }
}

