/* Izstoree - Boutique E-commerce Styles */

/* Font & Base Styles */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --color-primary: #212529;
    --color-secondary: #6c757d;
    --color-accent: #c9a959;
    --color-light: #f8f9fa;
    --color-border: #dee2e6;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-primary);
    background-color: #fff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Footer Links */
.footer-link {
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff !important;
}

h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: var(--font-heading);
}

.brand-text {
    font-size: 2rem;
    letter-spacing: 3px;
}

/* Brand subtitle with lines on both sides */
.brand-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 300;
    font-family: var(--font-body);
    letter-spacing: 2px;
    color: var(--color-secondary);
    margin-top: 2px;
}

.brand-subtitle::before,
.brand-subtitle::after {
    content: '';
    height: 1px;
    flex: 1;
    background: var(--color-primary);
    margin: 0 5px;
    max-width: 40px;
}

/* Hero Brand Title */
.hero-brand-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 3px;
}

/* Navbar icons */
.navbar-icons .nav-link {
    color: var(--color-primary);
    padding: 0.25rem 0.5rem;
}

.navbar-icons .nav-link:hover {
    color: var(--color-accent);
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--color-accent) !important;
}

/* Category Navigation Bar */
.category-nav {
    border-top: 1px solid var(--color-border);
    background: #fff;
}

.category-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    gap: 0;
}

.category-nav-list li {
    position: relative;
}

.category-nav-list li:not(:last-child)::after {
    content: '·';
    color: var(--color-border);
    padding: 0 0.4rem;
}

.category-nav-list a {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.category-nav-list a:hover {
    color: var(--color-accent);
}

@media (min-width: 992px) and (max-width: 1200px) {
    .category-nav-list a {
        font-size: 0.75rem;
    }
    .category-nav-list li:not(:last-child)::after {
        padding: 0 0.3rem;
    }
}

.cart-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
}

/* Top Bar */
.top-bar {
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    min-height: auto;
}

.hero-slide {
    line-height: 0;
}

.hero-banner {
    width: 100%;
    display: block;
    max-height: 750px;
    object-fit: cover;
    object-position: center;
}

.min-vh-50 {
    min-height: 50vh;
}

.hero-image {
    max-height: 500px;
    object-fit: cover;
}

/* Product Cards */
.product-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--color-light);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--color-light);
    color: var(--color-secondary);
}

.product-image-placeholder-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 400px;
    background: var(--color-light);
    color: var(--color-secondary);
    font-size: 3rem;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.badge-new {
    background: var(--color-accent);
}

.product-info {
    text-align: center;
}

.product-title {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-colors {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.color-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-right: 4px;
    /* Prevent pixelation */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.color-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.color-dot.active {
    box-shadow: 0 0 0 2px var(--color-primary);
}

.product-colors {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

/* Category Cards */
.category-card-inner {
    background: var(--color-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-card:hover .category-card-inner {
    background: var(--color-primary);
    color: #fff;
}

.category-card:hover h5,
.category-card:hover .text-dark {
    color: #fff !important;
}

/* Product Detail */
.product-gallery .main-image {
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-light);
}

.product-gallery .main-image img {
    width: 100%;
    height: auto;
}

.image-thumbnails {
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: var(--color-primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Color & Size Selection */
.color-option {
    display: inline-block;
    cursor: pointer;
}

.color-option input {
    display: none;
}

.color-circle {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-option.active .color-circle,
.color-option:hover .color-circle {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-primary);
}

.color-name {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.9rem;
}

.color-option.active .color-name,
.color-option:hover .color-name {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.size-option {
    display: inline-block;
    cursor: pointer;
}

.size-option input {
    display: none;
}

.size-option span {
    display: inline-block;
    min-width: 48px;
    padding: 0.5rem 1rem;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.size-option.active span,
.size-option:hover span {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

/* Filters */
.filters-sidebar {
    position: sticky;
    top: 100px;
}

.filter-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.color-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
    /* Prevent pixelation */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Cart */
.cart-item {
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: var(--color-primary) !important;
}

.quantity-control input {
    border: none;
    background: transparent;
}

.quantity-control input:focus {
    box-shadow: none;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: #fff;
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--color-primary);
}

footer h5, footer h6 {
    font-family: var(--font-heading);
}

.social-links a {
    transition: opacity 0.2s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

/* Account Pages */
.avatar {
    font-family: var(--font-heading);
}

/* Buttons */
.btn {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

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

.btn-dark:hover {
    background: #000;
    border-color: #000;
}

.btn-outline-dark:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-secondary);
    text-decoration: none;
}

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

/* Alerts */
.alert {
    border-radius: 4px;
}

/* Cards */
.card {
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-secondary);
}

/* Forms */
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.1);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 0;
    }

    .hero-section .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .hero-image {
        max-height: 350px;
    }

    .product-title {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .filters-sidebar {
        position: static;
    }
}

/* Address Item */
.address-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.address-item:hover {
    border-color: var(--color-primary) !important;
}

.address-item .form-check-input:checked + .form-check-label {
    font-weight: 500;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.5s ease;
}

/* Wishlist Button */
#wishlistBtn {
    transition: all 0.3s ease;
}

#wishlistBtn i {
    transition: transform 0.3s ease;
}

#wishlistBtn:hover i {
    transform: scale(1.1);
}

#wishlistBtn.btn-dark i {
    color: #dc3545;
}

/* Toast Notifications */
.toast {
    background: #fff;
    border-radius: 8px;
    min-width: 280px;
}

.toast-body {
    font-size: 0.95rem;
    padding: 1rem;
}

/* Payment Logos */
.payment-logo {
    height: 120px;
    width: auto;
    transition: transform 0.2s ease;
}

.payment-logo-paytr {
    height: 60px;
}

.payment-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .payment-logo {
        height: 60px;
    }

    .payment-logo-paytr {
        height: 35px;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .whatsapp-float, .btn {
        display: none !important;
    }
}
