/* 
    Abaya Theme - Inspired by abayadz.com 
    Minimalist, luxury boutique aesthetic
*/

/* Import Lato Font */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

:root {
    --primary: #9D8252;
    /* Gold/Tan */
    --primary-light: #B49B6F;
    --bg: #ffffff;
    --bg-alt: #f7f7f7;
    /* Very light gray for slight contrast */
    --bg-card: #ffffff;
    --text: #333333;
    /* Dark Charcoal */
    --text-muted: #777777;
    --text-light: #aaaaaa;
    --border: #e6e6e6;
    --border-light: #f2f2f2;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* Abaya theme prefers sharp corners or very minimal rounding */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;

    --font-main: 'Lato', sans-serif;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    color: var(--text);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* Buttons */
.btn-abaya-dark {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--text);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

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

.btn-abaya-gold {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-abaya-gold:hover {
    background-color: var(--text);
    border-color: var(--text);
    color: #ffffff;
}

.btn-abaya-outline {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--text);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-abaya-outline:hover {
    border-color: var(--text);
}

/* Form Controls */
.form-control-abaya {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control-abaya:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: none;
}

/* Select */
.form-select-abaya {
    width: 100%;
    padding: 12px 35px 12px 15px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.form-select-abaya:focus {
    outline: none;
    border-color: var(--primary);
}

/* Page Header (Breadcrumbs area) */
.page-header-abaya {
    background: transparent;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.page-header-abaya .breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.page-header-abaya .breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Section Titles */
.section-title-abaya {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-abaya h2 {
    font-size: 2.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title-abaya p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Utilities */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-dark {
    color: var(--text) !important;
}

.bg-dark {
    background-color: var(--text) !important;
}

/* Product Badges */
.badge-abaya {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--text);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 1px;
    z-index: 2;
}

.badge-abaya.sale {
    background: var(--primary);
}

/* ========================================= */
/* PRODUCT CARD ABAYA                        */
/* ========================================= */
.product-card-abaya {
    background: var(--bg-alt);
    /* Light gray like the reference */
    border: none;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-abaya:hover {
    box-shadow: var(--shadow-sm);
}

.product-card-abaya .card-image {
    display: block;
    position: relative;
    overflow: hidden;
    padding-bottom: 120%;
    /* Taller images typical in fashion */
}

.product-card-abaya .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.product-card-abaya .badge-discount {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--text);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 10px 8px;
    border-radius: 50%;
    z-index: 2;
    min-width: 40px;
    text-align: center;
}

.product-card-abaya .card-body {
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--bg);
}

.product-card-abaya .card-title {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.product-card-abaya .card-title:hover {
    color: var(--primary);
}

.product-card-abaya .card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.product-card-abaya .old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-right: 8px;
    font-weight: 400;
}

.product-card-abaya .card-actions {
    margin-top: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card-abaya:hover .card-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========================================= */
/* HOMEPAGE COMPONENTS ABAYA                 */
/* ========================================= */

.category-card-abaya {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    aspect-ratio: 1;
    /* Square */
    text-decoration: none;
}

.category-card-abaya img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-card-abaya:hover img {
    transform: scale(1.05);
}

.category-card-abaya .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    text-align: center;
}

.category-card-abaya .overlay h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.newsletter-abaya {
    background: var(--bg-alt);
    padding: 60px 0;
    text-align: center;
}

.newsletter-abaya h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.newsletter-abaya p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}
/* ---- Language Switcher ---- */
.lang-switcher {
    display: flex;
    align-items: center;
}
.lang-switcher a.nav-icon {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 8px;
    border: 1px solid var(--abaya-primary, #333);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.lang-switcher a.nav-icon:hover {
    background: var(--abaya-primary, #333);
    color: #fff;
}
