/*
Theme Name: PearlStore Zara Style
Theme URI: https://jewelrystore.uz
Description: Минималистичная тема для интернет-магазина в стиле Zara
Author: PearlStore
Author URI: https://jewelrystore.uz
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pearlstore-zara
Tags: e-commerce, woocommerce, minimal, modern
*/

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Header */
.site-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

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

.site-logo {
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Grid — сетка на ul.products, карточки в колонках (не растягивать на весь экран) */
.products-grid {
    display: block;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.products-grid .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-card,
li.product {
    position: relative;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover,
li.product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Соотношение сторон изображения (не растягивать на весь экран) */
.product-image,
.product-card .product-image,
li.product .product-image {
    display: block;
    width: 100%;
    padding-top: 125%; /* 4:5 */
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    position: relative;
}

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

/* Single Product */
.single-product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-main-image {
    width: 100%;
    padding-top: 125%;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.product-details h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-price-large {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    border: 1px solid #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #fff;
    color: #000;
}

.btn-outline {
    background: #fff;
    color: #000;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

/* Footer */
.site-footer {
    border-top: 1px solid #e5e5e5;
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid { padding: 20px 10px; }
    .products-grid .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-gallery {
        grid-template-columns: 1fr;
    }
    
    .main-navigation ul {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid .products {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* ==========================================================================
   Страница входа (Мой аккаунт) — стиль Zara: слева форма, справа фото
   ========================================================================== */
.pearlstore-login-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.pearlstore-login-layout {
    display: flex;
    min-height: 100vh;
}

.pearlstore-login-left {
    flex: 0 0 50%;
    max-width: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.pearlstore-login-inner {
    width: 100%;
    max-width: 400px;
}

.pearlstore-login-logo {
    margin-bottom: 48px;
}

.pearlstore-login-logo a {
    display: inline-block;
}

.pearlstore-login-logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

.pearlstore-login-logo-text {
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
}

.pearlstore-login-title {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
    line-height: 1.4;
}

.pearlstore-login-form-wrap {
    margin-bottom: 32px;
}

.pearlstore-login-forms {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.pearlstore-login-form-col {
    flex: 1 1 280px;
}

.pearlstore-form-heading {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: #000;
}

.pearlstore-zara-form .pearlstore-form-row {
    margin-bottom: 20px;
}

.pearlstore-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #000;
}

.pearlstore-input {
    width: 100%;
    padding: 0 0 10px;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-family: inherit;
    color: #000;
    outline: none;
}

.pearlstore-input:focus {
    border-bottom-color: #000;
}

.pearlstore-form-actions {
    margin-top: 24px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.pearlstore-form-actions .woocommerce-form__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pearlstore-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
}

.pearlstore-btn-primary {
    background: #000;
    color: #fff;
}

.pearlstore-btn-primary:hover {
    background: #fff;
    color: #000;
}

.pearlstore-btn-outline {
    background: #fff;
    color: #000;
}

.pearlstore-btn-outline:hover {
    background: #000;
    color: #fff;
}

.pearlstore-login-form-wrap .woocommerce-LostPassword {
    margin-top: 12px;
}

.pearlstore-login-form-wrap .woocommerce-LostPassword a {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pearlstore-login-help {
    margin-top: 32px;
}

.pearlstore-login-help a {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Правая колонка — фото */
.pearlstore-login-right {
    flex: 0 0 50%;
    max-width: 50%;
    min-height: 100vh;
    position: relative;
}

.pearlstore-login-right-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pearlstore-login-right-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.pearlstore-login-right-placeholder .pearlstore-login-size-hint {
    margin-top: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Сообщения об ошибках / успехе */
.pearlstore-login-form-wrap .woocommerce-error,
.pearlstore-login-form-wrap .woocommerce-message {
    list-style: none;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    border-left: 3px solid #000;
    background: #f5f5f5;
}

.pearlstore-login-form-wrap .woocommerce-error {
    border-left-color: #a00;
}

/* Адаптив: страница входа */
@media (max-width: 900px) {
    .pearlstore-login-layout {
        flex-direction: column;
    }

    .pearlstore-login-left {
        flex: none;
        max-width: 100%;
        min-height: auto;
        padding: 32px 20px;
    }

    .pearlstore-login-right {
        flex: none;
        max-width: 100%;
        min-height: 50vh;
    }
}

@media (max-width: 480px) {
    .pearlstore-login-forms {
        flex-direction: column;
        gap: 32px;
    }

    .pearlstore-login-title {
        font-size: 0.9rem;
    }
}

