/* =========================================
   GLOBAL STYLES
   ========================================= */

/* Import Core Fonts */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

/* =========================================
   CSS VARIABLES
   ========================================= */
/* ===========================================
       THEME COLORS - LUXURY PALETTE
       =========================================== */
:root {
    --color-primary: #5D001E;
    /* 1. Primary Brand Color (Koyu Bordo / Vişne Çürüğü) */
    --color-primary-light: #7D1030;
    /* Lighter tint for hovers */
    --color-primary-dark: #3B0010;
    /* Darker shade */


    /* 2. Secondary Color (Siyah - Yazılar/Butonlar) */
    --color-secondary: #000000;
    --color-text-dark: #000000;

    /* 3. Accent Color (Pudra / Ten Rengi - Vurgu/Bg) */
    --color-accent: #F3E5DC;
    --color-bg-light: #F3E5DC;

    /* 4. Action Color (Gold - Buttons/Highlights) */
    --color-action: #D4AF37;
    --color-action-hover: #B5942F;

    /* Base Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-border: #e5e5e5;
    --color-text-muted: #4a4a4a;

    /* Other Mappings */

    --primary-bg: #f9f9f9;

    /* Re-map generic names to new palette */
    /* Note: Old 'accent' was Gold. New 'accent' is Pudra. */
    /* specific overrides needed in components */
    --color-accent-primary: var(--color-action);
    /* Map old accent to Action (Gold) for buttons */

    /* ===========================================
       TYPOGRAPHY - Font Families
       =========================================== */
    --font-primary: 'Urbanist',
        sans-serif;
    --font-secondary: 'Poppins',
        sans-serif;
    --font-heading: 'Cinzel',
        serif;
    --font-system: -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        sans-serif;

    /* Font Sizes */
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 80px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-round: 50px;
    --radius-circle: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container */
    --container-max: 1400px;
    --container-md: 1200px;
    --container-sm: 960px;

    /* ===========================================
       SPACING SYSTEM (Unified Control)
       =========================================== */
    --section-spacing-y-desktop: 50px;
    /* Reduced from 80px */
    --section-spacing-y-mobile: 30px;
    /* Reduced from 40px */

    --content-gap-desktop: 30px;
    --content-gap-mobile: 15px;

    --page-top-gap-desktop: 40px;
    /* Distance from navbar */
    --page-top-gap-mobile: 20px;
}

/* =========================================
   UNIFIED SPACING UTILITIES
   ========================================= */

/* Standard Section Spacing (Top/Bottom) */
.page-section-gap {
    padding-top: var(--section-spacing-y-desktop);
    padding-bottom: var(--section-spacing-y-desktop);
}

/* Page Top Spacing (Prevent navbar overlap/clutter) */
.page-top-gap {
    padding-top: var(--page-top-gap-desktop);
}

/* Content Grid/Flex Gap */
.content-gap {
    gap: var(--content-gap-desktop);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .page-section-gap {
        padding-top: var(--section-spacing-y-mobile);
        padding-bottom: var(--section-spacing-y-mobile);
    }

    .page-top-gap {
        padding-top: var(--page-top-gap-mobile);
    }

    .content-gap {
        gap: var(--content-gap-mobile);
    }

    /* Override legacy massive paddings if they exist */
    .p-t-50,
    .p-t-80,
    .p-t-100 {
        padding-top: var(--section-spacing-y-mobile) !important;
    }

    .p-b-50,
    .p-b-80,
    .p-b-100 {
        padding-bottom: var(--section-spacing-y-mobile) !important;
    }
}

/* Vertical Spacing for Sibling Sections */
.section-mt {
    margin-top: var(--section-spacing-y-desktop);
}

.section-mb {
    margin-bottom: var(--section-spacing-y-desktop);
}

@media (max-width: 991px) {
    .section-mt {
        margin-top: var(--section-spacing-y-mobile);
    }

    .section-mb {
        margin-bottom: var(--section-spacing-y-mobile);
    }
}

/* =========================================
   CSS RESET
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Urbanist', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(32px, 5vw, 48px);
}

h2 {
    font-size: clamp(28px, 4vw, 36px);
}

h3 {
    font-size: clamp(22px, 3vw, 28px);
}

h4 {
    font-size: clamp(18px, 2.5vw, 22px);
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-action);
}

/* =========================================
   CONTAINER & LAYOUT
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Footer Payment Image */
.footer-payment-img {
    max-width: 300px;
    height: auto;
    margin-top: 15px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.container-md {
    max-width: var(--container-md);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-sm {
    max-width: var(--container-sm);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Full Width */
.full-width {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* =========================================
   SPACING UTILITIES
   ========================================= */
/* Margins */
.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: var(--spacing-xs) !important;
}

.mt-2 {
    margin-top: var(--spacing-sm) !important;
}

.mt-3 {
    margin-top: var(--spacing-md) !important;
}

.mt-4 {
    margin-top: var(--spacing-lg) !important;
}

.mt-5 {
    margin-top: var(--spacing-xl) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: var(--spacing-xs) !important;
}

.mb-2 {
    margin-bottom: var(--spacing-sm) !important;
}

.mb-3 {
    margin-bottom: var(--spacing-md) !important;
}

.mb-4 {
    margin-bottom: var(--spacing-lg) !important;
}

.mb-5 {
    margin-bottom: var(--spacing-xl) !important;
}

.my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.my-3 {
    margin-top: var(--spacing-md) !important;
    margin-bottom: var(--spacing-md) !important;
}

.my-4 {
    margin-top: var(--spacing-lg) !important;
    margin-bottom: var(--spacing-lg) !important;
}

.my-5 {
    margin-top: var(--spacing-xl) !important;
    margin-bottom: var(--spacing-xl) !important;
}

/* Paddings */
.pt-0 {
    padding-top: 0 !important;
}

.pt-3 {
    padding-top: var(--spacing-md) !important;
}

.pt-4 {
    padding-top: var(--spacing-lg) !important;
}

.pt-5 {
    padding-top: var(--spacing-xl) !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pb-3 {
    padding-bottom: var(--spacing-md) !important;
}

.pb-4 {
    padding-bottom: var(--spacing-lg) !important;
}

.pb-5 {
    padding-bottom: var(--spacing-xl) !important;
}

.py-3 {
    padding-top: var(--spacing-md) !important;
    padding-bottom: var(--spacing-md) !important;
}

.py-4 {
    padding-top: var(--spacing-lg) !important;
    padding-bottom: var(--spacing-lg) !important;
}

.py-5 {
    padding-top: var(--spacing-xl) !important;
    padding-bottom: var(--spacing-xl) !important;
}

/* Section Spacing */
.section {
    padding: var(--spacing-xl) 0;
}

.section-lg {
    padding: var(--spacing-xxl) 0;
}

/* =========================================
   FLEXBOX UTILITIES
   ========================================= */
.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-items-center {
    align-items: center;
}

.align-items-start {
    align-items: flex-start;
}

.align-items-end {
    align-items: flex-end;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-around {
    justify-content: space-around;
}

.justify-content-end {
    justify-content: flex-end;
}

.gap-1 {
    gap: var(--spacing-xs);
}

.gap-2 {
    gap: var(--spacing-sm);
}

.gap-3 {
    gap: var(--spacing-md);
}

.gap-4 {
    gap: var(--spacing-lg);
}

/* =========================================
   TEXT UTILITIES
   ========================================= */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-capitalize {
    text-transform: capitalize;
}

.text-lowercase {
    text-transform: lowercase;
}

.text-bold {
    font-weight: 700;
}

.text-semibold {
    font-weight: 600;
}

.text-normal {
    font-weight: 400;
}

.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: var(--white);
}

.text-dark {
    color: var(--text-dark);
}

.text-primary {
    color: var(--color-primary);
}

/* =========================================
   DISPLAY UTILITIES
   ========================================= */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

/* Responsive Display */
@media (max-width: 991px) {
    .d-none-md {
        display: none !important;
    }

    .d-block-md {
        display: block !important;
    }
}

@media (max-width: 576px) {
    .d-none-sm {
        display: none !important;
    }

    .d-block-sm {
        display: block !important;
    }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: var(--white);
}

.btn-accent {
    background: var(--color-action);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--color-action-hover);
}

.btn-pill {
    border-radius: var(--radius-round);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 12px;
}

/* =========================================
   FORM ELEMENTS
   ========================================= */
input,
textarea,
select {
    font-family: inherit;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(93, 0, 30, 0.1);
    /* Primary color rgba */
}

.form-control::placeholder {
    color: #999;
}

/* =========================================
   CARDS
   ========================================= */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-body {
    padding: var(--spacing-md);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

/* =========================================
   BADGES
   ========================================= */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
}

.badge-primary {
    background: var(--color-primary);
    color: var(--white);
}

.badge-accent {
    background: var(--color-action);
    color: var(--white);
}

.badge-success {
    background: var(--color-success);
    color: var(--white);
}

.badge-warning {
    background: var(--color-warning);
    color: var(--white);
}

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.view-all:hover {
    color: var(--color-action);
}

/* =========================================
   SCROLLBAR CUSTOM STYLES
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* =========================================
   SELECTION
   ========================================= */
::selection {
    background: var(--color-primary);
    color: var(--white);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease;
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 1200px) {
    .container {
        padding: 0 25px;
    }
}

@media (max-width: 991px) {
    .section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Product Badge Positioning Update */
    .product-badges {
        top: auto !important;
        bottom: 10px !important;
        left: 10px !important;
        right: auto !important;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }
}

/* Mobile card-fav-btn fix: see pages.css */