/* ==========================================================================
   ALVEODE - TRENDYOL CORPORATE BRAND DESIGN SYSTEM
   Fonts: Inter & Open Sans
   Icons: Outlined Linear Vector Style (Material Symbols 350w / Fill 0)
   Colors: Trendyol Corporate Orange (#f27a1a), Slate (#333333)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* Root Typography & Colors */
:root {
    --ty-orange: #f27a1a;
    --ty-orange-hover: #e06b0d;
    --ty-orange-light: #fff7f2;
    --ty-dark: #333333;
    --ty-gray: #666666;
    --ty-light-gray: #f3f4f6;
    --ty-border: #e5e7eb;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ty-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 1. Trendyol Outlined Crisp Iconography */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 350, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Filled Icon Utility for Stars & Active State Icons */
.material-symbols-filled,
.icon-fill {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}

.material-symbols-outlined.icon-bold {
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24 !important;
}

/* 2. Trendyol Header Action Items */
.ty-header-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--ty-dark);
    font-size: 0.8125rem; /* 13px */
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.ty-header-action:hover {
    color: var(--ty-orange);
    background-color: var(--ty-orange-light);
}

.ty-header-action .material-symbols-outlined {
    font-size: 1.35rem; /* ~22px */
    color: #4b5563;
    transition: color 0.2s ease;
}

.ty-header-action:hover .material-symbols-outlined {
    color: var(--ty-orange);
}

/* 2.1 Solid Cart Button (Preserves Crisp White Colors On Hover) */
.ty-cart-btn {
    background-color: #f27a1a !important;
    background: linear-gradient(135deg, #f27a1a 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(242, 122, 26, 0.3) !important;
}

.ty-cart-btn:hover {
    background: linear-gradient(135deg, #e06b0d 0%, #d97706 100%) !important;
    color: #ffffff !important;
}

.ty-cart-btn .material-symbols-outlined,
.ty-cart-btn:hover .material-symbols-outlined {
    color: #ffffff !important;
}

.ty-cart-btn span.text-white,
.ty-cart-btn:hover span.text-white {
    color: #ffffff !important;
}

/* Badge for Favorites & Cart */
.ty-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--ty-orange);
    color: #ffffff;
    font-size: 0.625rem; /* 10px */
    font-weight: 800;
    min-width: 1.125rem;
    height: 1.125rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    box-shadow: 0 1px 3px rgba(242, 122, 26, 0.4);
    border: 1.5px solid #ffffff;
}

/* 3. Trendyol Corporate Search Bar */
.ty-search-input {
    background-color: #f3f4f6;
    border: 1.5px solid transparent;
    border-radius: 0.5rem;
    padding-left: 2.5rem;
    padding-right: 6.5rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1f2937;
    width: 100%;
    transition: all 0.2s ease;
}

.ty-search-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--ty-orange);
    box-shadow: 0 0 0 4px rgba(242, 122, 26, 0.12);
}

.ty-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.ty-search-btn {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #f27a1a 0%, #e06b0d 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 1.25rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 6px rgba(242, 122, 26, 0.3);
    transition: all 0.2s ease;
}

.ty-search-btn:hover {
    background: linear-gradient(135deg, #e06b0d 0%, #c95d05 100%);
    box-shadow: 0 3px 8px rgba(242, 122, 26, 0.4);
}

/* 4. Category Story Circle Style */
.ty-story-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    padding: 2px;
    background-color: #e5e7eb;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.group:hover .ty-story-circle {
    background: linear-gradient(135deg, #f27a1a 0%, #7c3aed 100%);
    transform: scale(1.06);
}

.ty-story-inner {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    transition: background-color 0.2s ease;
}

/* No Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth Transitions */
.transition-ty {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.animate-slideLeft {
    animation: slideLeft 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
.animate-slideRight {
    animation: slideRight 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Touch Scrolling Utility */
.touch-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.mobile-bottom-nav {
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    min-width: 54px;
    min-height: 44px;
    padding: 4px 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.mobile-bottom-nav-item:active {
    transform: scale(0.94);
}

.mobile-bottom-nav-item.active,
.mobile-bottom-nav-item:hover {
    color: var(--ty-orange);
}

/* Header & Icon Guard Rules */
header img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif !important;
}

/* Blog Article Content Styling */
.blog-article-content h1, .blog-article-content h2, .blog-article-content h3 {
    color: #0f172a;
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.blog-article-content p {
    color: #334155;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}
.blog-article-content a {
    color: #f27a1a;
    font-weight: 700;
    text-decoration: underline;
}
.blog-article-content ul, .blog-article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.blog-article-content li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}
.blog-article-content blockquote {
    border-left: 4px solid #f27a1a;
    background-color: #fff7ed;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-style: italic;
    color: #475569;
    margin: 1.5rem 0;
}

/* CMS Light Prose Styling */
.prose-light h1:not([class*="text-"]), 
.prose-light h2:not([class*="text-"]), 
.prose-light h3:not([class*="text-"]) {
    color: #0f172a;
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.prose-light p:not([class*="text-"]) {
    color: #334155;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}
.prose-light a {
    color: #f27a1a;
    font-weight: 700;
    text-decoration: underline;
}
.prose-light ul, .prose-light ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.prose-light li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}


