/* Custom Styles for Style Vault Collection
   Enhanced with Color Psychology Principles
   Now uses CSS variables for theming */

:root {
    /* Primary colors – default forest/pink theme */
    --primary-color: #d63384;          /* Deep rose (CTA) */
    --primary-hover: #b02a6b;
    --secondary-color: #ff6b8a;        /* Pink primary */
    --secondary-hover: #ff5277;
    --accent-color: #0d6efd;           /* Trust blue */
    --whatsapp-green: #25d366;
    --urgency-red: #dc3545;

    /* Backgrounds */
    --bg-body: #fff0f3;                /* Pink light */
    --bg-card: #ffffff;
    --bg-navbar: linear-gradient(135deg, #d63384, #ff6b8a);
    --bg-footer: #333333;

    /* Typography */
    --font-family-heading: 'Poppins', sans-serif;
    --font-family-body: 'Poppins', sans-serif;
    --font-family-mono: 'Courier New', monospace; /* for brutalism */

    /* Borders & radii */
    --border-radius: 1rem;
    --border-color: rgba(214, 51, 132, 0.1);
    --border-width: 1px;

    /* Shadows */
    --box-shadow: 0 10px 25px rgba(214, 51, 132, 0.1);
    --box-shadow-hover: 0 20px 35px rgba(214, 51, 132, 0.2);

    /* Text colors */
    --text-primary: #333333;
    --text-muted: #666666;
    --text-light: #ffffff;
}

* {
    font-family: var(--font-family-body);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-body);
    color: var(--text-primary);
}

/* Background Colors */
.bg-pink-light {
    background-color: var(--bg-body) !important;
}
.bg-pink-primary {
    background-color: var(--secondary-color) !important;
}

/* Text Colors */
.text-pink {
    color: var(--primary-color) !important;
}
.text-trust {
    color: var(--accent-color) !important;
}

/* Navbar Custom */
.navbar-custom {
    background: var(--bg-navbar);
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.2);
}
.navbar-custom .navbar-brand {
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: white !important;
}
.navbar-custom .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255,255,255,0.5);
}

.navbar-toggler {
    filter: invert(1);
}

/* Button Icons */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}
.btn-whatsapp {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
}
.btn-whatsapp:hover {
    background-color: rgba(255,255,255,0.3);
    color: white;
}
.btn-cart {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
}
.btn-cart:hover {
    background-color: rgba(255,255,255,0.3);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    text-align: center;
    background: radial-gradient(circle at 10% 30%, var(--bg-body), #fff);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255,255,255,0.7);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.hero-badge i {
    color: var(--primary-color);
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(214, 51, 132, 0.1);
}
.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    color: #555;
    margin-bottom: 1rem;
}
.hero-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category Cards */
.category-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    display: block;
    height: 100%;
    border: var(--border-width) solid var(--border-color);
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
}
.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.category-card:hover .category-icon {
    transform: scale(1.1);
}
.category-icon.hot { background: linear-gradient(135deg, #ff6b35, #f7931e); }
.category-icon.dresses { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }
.category-icon.luxury { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    white-space: pre-line;
    line-height: 1.4;
}
.category-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.category-explore {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.category-card:hover .category-explore {
    opacity: 1;
}

/* Product Cards */
.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: var(--border-width) solid var(--border-color);
}
.product-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}
.product-badge {
    padding: 0.75rem;
    text-align: center;
    color: var(--urgency-red);
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 138, 0.1), transparent);
}
.product-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}
.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);
}
.product-info {
    padding: 1.25rem;
}
.product-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.product-actions .btn {
    width: 100%;
}
.btn-dark-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    transition: background-color 0.3s;
}
.btn-dark-custom:hover {
    background-color: var(--primary-hover);
    color: white;
}
.btn-outline-dark-custom {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-outline-dark-custom:hover {
    background-color: var(--bg-body);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.btn-whatsapp-order {
    background-color: var(--whatsapp-green);
    color: white;
    border: none;
}
.btn-whatsapp-order:hover {
    background-color: #128c7e;
    color: white;
}

/* Size Chart Modal */
.size-chart-table {
    width: 100%;
    font-size: 0.9rem;
}
.size-chart-table th,
.size-chart-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}
.size-chart-table th {
    font-weight: 600;
    background-color: var(--bg-body);
    color: var(--primary-color);
}

/* Cart */
.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

/* Footer */
.footer {
    background-color: var(--bg-footer);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.footer a {
    color: var(--accent-color);
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 2.5rem;
}
.page-title h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}
.page-title h1:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Offcanvas */
.offcanvas-title {
    font-weight: 600;
    color: var(--primary-color);
}
.offcanvas .btn-close {
    filter: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Dark Pattern Styles */
.stock-warning {
    font-size: 0.9rem;
    color: var(--urgency-red) !important;
    animation: blink 1.5s infinite;
    font-weight: 600;
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
#countdown-timer {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .category-card { margin-bottom: 1rem; }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    .product-card { margin-bottom: 1rem; }
}