/* ==========================================
   FORMA TASARIM SİSTEMİ - MAIN CSS
   Profesyonel E-Ticaret Platformu
   ========================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF1744;
    --secondary-color: #2196F3;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    --dark-color: #0d0d0d;
    --light-color: #1a1a1a;
    --border-color: #2a2a2a;
    --text-color: #e0e0e0;
    --text-light: #aaaaaa;
    --text-lighter: #777777;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: #000000;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    max-width: 100%;
    padding: 0 20px;
}

/* ==========================================
   HEADER
   ========================================== */

.site-header {
    background: #000000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #050505;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0;
    font-size: 14px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact,
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.header-link:hover {
    color: var(--primary-color);
}

.header-link svg {
    flex-shrink: 0;
}

.header-main {
    padding: 15px 0;
}

.header-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.logo-text {
    font-weight: 600;
    color: #ffffff;
    /* Reduced min size and more aggressive scaling */
    font-size: clamp(13px, calc(0.8rem + 1.5vw), 24px);
    line-height: 1.1;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* Factor in text length if --name-len is set via PHP */
[style*="--name-len"] .logo-text {
    /* More aggressive shrink: 0.02 instead of 0.012 */
    font-size: clamp(12px, calc(clamp(13px, calc(0.8rem + 1.5vw), 24px) * (1 - (max(0, var(--name-len) - 12) * 0.02))), 24px);
    display: inline-block;
}

.site-logo svg {
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle,
.cart-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.search-toggle:hover,
.cart-btn:hover {
    background: rgba(255,255,255,0.1);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

/* Search Bar */
.search-bar {
    background: var(--light-color);
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    display: none;
}

.search-bar.active {
    display: block;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-submit {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #D50032 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.search-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.4);
}

.search-submit:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.search-submit:active {
    transform: scale(0.95);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #0d0d0d;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-color);
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    background: #000000;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
}

.feature-item svg {
    flex-shrink: 0;
}

/* ==========================================
   CATEGORIES
   ========================================== */

.categories-section {
    padding: 30px 0;
    background: #0d0d0d;
    border-bottom: 1px solid var(--border-color);
}

.categories-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.categories-scroll::-webkit-scrollbar {
    height: 6px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 3px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.category-chip {
    padding: 10px 24px;
    background: var(--white);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.category-chip:hover {
    background: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-chip.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #D50032 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3);
}

/* ==========================================
   PRODUCTS
   ========================================== */

.products-section {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-card {
    background: #111111;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid #222222;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.badge-featured {
    background: #FFD700;
    color: var(--dark-color);
}

.product-image-link {
    display: block;
    position: relative;
    padding-top: 110%;
    overflow: hidden;
    background: var(--light-color);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-body {
    padding: 14px;
}

.product-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-title a {
    color: #e0e0e0;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-description {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-currency {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #D50032 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: var(--light-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ==========================================
   PAGINATION
   ========================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.pagination-btn {
    padding: 10px 20px;
    background: #111111;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.pagination-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #D50032 100%);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 23, 68, 0.3);
}

.pagination-info {
    font-weight: 500;
    color: var(--text-light);
}

/* ==========================================
   EMPTY STATE
   ========================================== */

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state svg {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    opacity: 0.3;
    stroke: var(--text-lighter);
}

.empty-state h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.empty-state p {
    color: var(--text-lighter);
    font-size: 16px;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background: var(--dark-color);
    color: var(--white);
    margin-top: 80px;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo svg {
    stroke: var(--white);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    z-index: -1;
    transition: transform 0.3s ease;
    transform: scale(0);
}

.social-link:hover {
    color: var(--white);
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(255, 23, 68, 0.3);
}

.social-link:hover::before {
    transform: scale(1);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.8;
    word-break: break-word;
}

.footer-contact svg {
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 13px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
    animation: none;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }


}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-main-content {
        gap: 10px;
    }

    .site-logo {
        gap: 5px;
    }

    .header-right {
        gap: 8px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-features {
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* ==========================================
   UTILITIES
   ========================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mb-4 {
    margin-bottom: 40px;
}

.pt-1 {
    padding-top: 10px;
}

.pt-2 {
    padding-top: 20px;
}

.pt-3 {
    padding-top: 30px;
}

.pt-4 {
    padding-top: 40px;
}

.pb-1 {
    padding-bottom: 10px;
}

.pb-2 {
    padding-bottom: 20px;
}

.pb-3 {
    padding-bottom: 30px;
}

.pb-4 {
    padding-bottom: 40px;
}

/* Dropdown Menu */
.main-nav .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #111111;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 10px 0;
    display: none;
    /* Changed from visibility: hidden */
    z-index: 1100;
    border: 1px solid #2a2a2a;
}

.main-nav .nav-item:hover .dropdown-menu {
    display: block;
    /* Changed from visibility: visible */
    transform: translateX(-50%) translateY(0);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.main-nav .dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 1px solid #2a2a2a;
}

.main-nav .dropdown-item:last-child {
    border-bottom: none;
}

.main-nav .dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Nested Dropdown Styles */
.dropdown-group {
    position: relative;
}

.dropdown-item-group {
    position: relative;
    /* Context for absolute positioning of submenu */
}

.dropdown-item.parent-item {
    font-weight: 600;
    color: var(--text-color);
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item.parent-item::after {
    content: '›';
    font-size: 18px;
    line-height: 1;
    margin-left: 10px;
    color: #999;
}

.dropdown-submenu {
    display: none;
    /* Hidden by default */
    position: absolute;
    left: 100%;
    top: 0;
    background: #111111;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-radius: 0 8px 8px 8px;
    /* Rounded corners except top-left */
    padding: 10px 0;
    z-index: 1101;
    border: 1px solid #2a2a2a;
}

/* Show submenu on hover */
.dropdown-item-group:hover .dropdown-submenu {
    display: block;
}

.dropdown-item-group:hover .dropdown-item.parent-item {
    background: var(--light-color);
    color: var(--primary-color);
}

.dropdown-item.child-item {
    padding-left: 20px;
    /* Standard padding */
    font-size: 14px;
}

/* Categories Page Styles */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: #111111;
    height: 100%;
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.category-icon {
    width: 100%;
    height: 250px;
    /* Fixed large height */
    margin-bottom: 15px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: var(--radius-md);
}

.category-card:hover .category-icon img {
    transform: scale(1.05);
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.category-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-link {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ==========================================
   SEARCH MODAL
   ========================================== */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2500;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: var(--transition);
}

.search-modal-content {
    position: relative;
    background: #111111;
    width: 100%;
    max-width: 800px;
    margin: 60px auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.search-modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.search-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-color);
    transition: var(--transition);
    color: var(--text-light);
}

.search-modal-close:hover {
    background: var(--danger-color);
    color: var(--white);
}

.search-modal-form {
    margin-bottom: 40px;
}

.search-input-group {
    display: flex;
    gap: 0;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition);
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 23, 68, 0.1);
}

.search-modal-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    outline: none;
    background: #111111;
    color: #e0e0e0;
}

.search-modal-select {
    padding: 0 20px;
    background: #1a1a1a;
    border: none;
    border-left: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    outline: none;
    cursor: pointer;
    max-width: 150px;
}

.search-modal-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--dark-color) 0%, #111 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-modal-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #D50032 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.3);
}

.search-modal-submit:hover::before {
    opacity: 1;
}

.search-modal-submit:active {
    transform: scale(0.98);
}

.search-featured-categories h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
}

.search-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.search-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #2a2a2a;
}

.search-category-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.search-category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    border-radius: 50%;
    color: var(--dark-color);
    transition: var(--transition);
}

.search-category-item:hover .search-category-icon {
    background: var(--primary-color);
    color: var(--white);
}

.search-category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-modal-content {
        position: fixed;
        bottom: 0;
        left: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 20px;
        transform: translateY(100%);
        max-height: 90vh;
    }

    .search-modal.active .search-modal-content {
        transform: translateY(0);
    }

    .search-modal-header {
        margin-bottom: 20px;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-modal-select {
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .search-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .search-category-item {
        padding: 10px;
        gap: 8px;
    }

    .search-category-icon {
        width: 50px;
        height: 50px;
    }

    .search-category-icon svg {
        width: 24px;
        height: 24px;
    }

    .search-category-name {
        font-size: 12px;
    }
}

/* ==========================================
   MADE PRODUCTS CARD STYLE
   ========================================== */
.made-product-item {
    background: #111111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #222222;
}

.made-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.made-product-image-container {
    position: relative;
    padding-top: 135%;
    overflow: hidden;
    background: #1a1a1a;
}

.made-product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    transition: transform 0.5s ease;
}

.made-product-item:hover .made-product-image-container img {
    transform: scale(1.05);
}

.made-product-info {
    padding: 12px 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.made-product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.made-product-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.made-product-title a:hover {
    color: var(--primary-color);
}

.made-product-category {
    display: inline-block;
    padding: 4px 10px;
    background: #2a2a2a;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #aaaaaa;
    margin-bottom: 15px;
    align-self: flex-start;
}

.btn-made-order {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-made-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #D50032 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-made-order:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 23, 68, 0.3);
}

.btn-made-order:hover::before {
    opacity: 1;
}

.btn-made-order:active {
    transform: scale(0.98);
}