/* ============================================
   HubavaKozha.eu — Rose/Pink Cosmetics Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --pink: #e91e63;
    --pink-dark: #c2185b;
    --pink-light: #fce4ec;
    --pink-soft: #f8bbd0;
    --rose-deep: #880e4f;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-pink: 0 4px 15px rgba(233,30,99,0.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.25s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--pink-dark);
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Grid System --- */
.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- Navbar --- */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.navbar-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pink);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.02em;
}

.navbar-logo:hover {
    color: var(--pink-dark);
}

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

.navbar-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--gray-700);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--pink);
    background: var(--pink-light);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-700);
}

.navbar-toggle svg {
    width: 26px;
    height: 26px;
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        gap: 4px;
    }

    .navbar-nav.open {
        display: flex;
    }

    .navbar-nav a {
        padding: 12px 16px;
        width: 100%;
    }
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--pink) 0%, var(--rose-deep) 50%, var(--pink-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: heroShimmer 15s ease-in-out infinite;
}

@keyframes heroShimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.hero h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 16px;
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.92;
    max-width: 600px;
    margin: 0 auto 32px;
    position: relative;
}

.hero-sm {
    padding: 48px 0;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

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

.btn-primary:hover {
    background: var(--pink-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,30,99,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--pink);
    border: 2px solid var(--pink);
}

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

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

.btn-white:hover {
    background: var(--pink-light);
    color: var(--pink-dark);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition);
}

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

.card-body {
    padding: 24px;
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.card-text {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* --- Product Card --- */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

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

.product-card .product-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--pink-light);
}

.product-card .product-body {
    padding: 20px;
}

.product-card .product-brand {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pink);
    font-weight: 600;
    margin-bottom: 6px;
}

.product-card .product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card .product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--pink-dark);
}

.product-card .product-price-old {
    font-size: 0.88rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.product-card .product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--pink);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    color: #f59e0b;
    font-size: 0.85rem;
}

.product-card .btn {
    width: 100%;
    margin-top: 14px;
}

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

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: var(--font);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-800);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(233,30,99,0.12);
}

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

.form-input::placeholder {
    color: var(--gray-400);
}

/* --- Sections --- */
.section {
    padding: 64px 0;
}

.section-pink {
    background: var(--pink-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

/* --- Blog Card --- */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.blog-card .blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card .blog-body {
    padding: 22px;
}

.blog-card .blog-category {
    display: inline-block;
    background: var(--pink-light);
    color: var(--pink-dark);
    padding: 3px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-card .blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card .blog-excerpt {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.blog-card .blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--gray-500);
}

/* --- Tool Card --- */
.tool-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.tool-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--pink-soft);
}

.tool-card .tool-icon {
    width: 56px;
    height: 56px;
    background: var(--pink-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
}

.tool-card .tool-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.tool-card .tool-desc {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.55;
}

/* --- Footer --- */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 64px 0 0;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer a {
    color: var(--gray-400);
    font-size: 0.9rem;
    display: block;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer a:hover {
    color: var(--pink-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    margin-top: 48px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-newsletter {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 0.9rem;
    outline: none;
}

.footer-newsletter input::placeholder {
    color: var(--gray-500);
}

.footer-newsletter button {
    padding: 10px 20px;
    background: var(--pink);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.footer-newsletter button:hover {
    background: var(--pink-dark);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: var(--gray-400);
    font-size: 1.1rem;
    transition: all var(--transition);
    padding: 0;
}

.footer-social a:hover {
    background: var(--pink);
    color: var(--white);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

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

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    font-size: 0.88rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner a {
    color: var(--pink-soft);
}

.cookie-banner .btn {
    white-space: nowrap;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-pink { color: var(--pink); }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 0.88rem; }
.text-lg { font-size: 1.15rem; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.py-6 { padding-top: 48px; padding-bottom: 48px; }
.hidden { display: none; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.88rem;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--pink);
}

.breadcrumb span {
    color: var(--gray-400);
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 40px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
}

.pagination a {
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.pagination a:hover {
    border-color: var(--pink);
    color: var(--pink);
    background: var(--pink-light);
}

.pagination .active {
    background: var(--pink);
    color: var(--white);
    border: 1px solid var(--pink);
}

/* --- Alerts --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    margin-bottom: 20px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-info {
    background: var(--pink-light);
    color: var(--rose-deep);
    border: 1px solid var(--pink-soft);
}

/* --- Loading Spinner --- */
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--pink);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Responsive Typography --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }
    .hero { padding: 56px 0; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.05rem; }
    .section { padding: 48px 0; }
    .section-title { font-size: 1.6rem; }
    .cookie-banner { flex-direction: column; text-align: center; }
}
