/* ==============================================================================
   ARTUKLUGSM - OPENCART VIP / JOURNAL3 DEMO UYUMLU E-TİCARET TASARIM SİSTEMİ
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* OpenCart VIP & Journal3 Marka Paleti */
    --ink: #222222;
    --ink-2: #2d2d2d;
    --ink-3: #444444;

    --orange: #FF7A1A;         /* GSM Turuncusu */
    --orange-light: #FFA04D;
    --orange-deep: #FD4F01;
    --orange-soft: #FFF1E6;
    --orange-ring: rgba(255, 122, 26, .35);

    /* OpenCart VIP Vurgu Renkleri */
    --deal-red: #E93426;       /* % İndirim Kırmızı Rozeti */
    --deal-red-deep: #D02417;
    --deal-red-soft: #FDE8E6;
    --success-green: #27AE60;  /* Fiyat ve Stok Yeşil */
    --success-soft: #EAF7EF;
    --wa-green: #25D366;       /* WhatsApp Yeşili */
    --wa-hover: #1EBE5D;

    --bg: #F4F5F7;
    --surface: #FFFFFF;
    --line: #EAEAEA;
    --muted: #777777;

    --radius-xl: 20px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 4px;
    --radius-round: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 30px rgba(0,0,0,.1);
    --shadow-hover: 0 15px 35px rgba(0,0,0,.15);

    --grad-orange: linear-gradient(135deg, #FF8A1A 0%, #FD4F01 100%);
    --grad-deal: linear-gradient(135deg, #E93426 0%, #D02417 100%);
    --grad-dark: linear-gradient(135deg, #1E2126 0%, #0F1115 100%);

    --bs-warning: #FF7A1A;
    --bs-warning-rgb: 255, 122, 26;
    --bs-dark: #14161A;
    --bs-dark-rgb: 20, 22, 26;
    --bs-body-color: #222222;
    --bs-body-bg: #F4F5F7;
    --bs-link-color: #FD4F01;
    --bs-link-hover-color: #D94300;
    --bs-border-color: #EAEAEA;
    --bs-font-sans-serif: "Poppins", system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--bs-font-sans-serif);
    background-color: var(--bg);
    color: var(--ink);
    margin: 0;
    padding-bottom: 78px;
    -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; }
.fw-extrabold { font-weight: 800 !important; }
.text-muted { color: var(--muted) !important; }
:focus-visible { outline: 2px solid var(--orange-ring); outline-offset: 2px; }

/* ---------- Üst Ticker Şeridi (OpenCart VIP top-bar) ---------- */
.top-promo-ticker {
    background: #111111;
    color: #CCCCCC;
    font-size: 0.8rem;
    font-weight: 500;
    border-bottom: 1px solid #222222;
    letter-spacing: 0.02em;
}
.top-promo-ticker a { color: #FFFFFF; text-decoration: none; transition: color 0.2s; }
.top-promo-ticker a:hover { color: var(--orange-light); }
.top-promo-ticker i { color: var(--orange); margin-right: 4px; }

/* ---------- Header & Menü (OpenCart VIP Main Header) ---------- */
.header-main {
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid transparent;
    border-image: var(--grad-orange) 1;
}
.brand-logo img { height: 45px; width: auto; display: block; }
@media (min-width: 768px) { .brand-logo img { height: 50px; } }

.search-input {
    background-color: #F8F9FA !important;
    border: 2px solid #EEEEEE !important;
    color: #333 !important;
    border-radius: var(--radius-round) 0 0 var(--radius-round) !important;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}
.search-input::placeholder { color: #999 !important; font-weight: 400; }
.search-input:focus { background-color: #FFFFFF !important; border-color: var(--orange) !important; box-shadow: 0 0 0 3px var(--orange-ring) !important; }
.search-btn {
    background: var(--orange) !important;
    border: 2px solid var(--orange) !important;
    color: #fff !important;
    border-radius: 0 var(--radius-round) var(--radius-round) 0 !important;
    font-weight: 700;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    transition: background-color 0.2s, border-color 0.2s;
}
.search-btn:hover { background: var(--orange-deep) !important; border-color: var(--orange-deep) !important; }

.header-icon {
    width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #333; background: #F4F5F7;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 1.1rem;
}
.header-icon:hover { background: var(--orange-soft); color: var(--orange-deep); }
.cart-badge {
    position: absolute; top: -2px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
    background: var(--deal-red); color: #fff; font-size: 0.75rem; font-weight: 700;
    border-radius: 999px; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

.main-nav-bar {
    background: #FFFFFF;
    border-top: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.main-nav-bar .nav-link {
    color: var(--ink-3); font-weight: 600; font-size: 0.9rem;
    padding: 0.8rem 1rem; transition: color 0.2s ease;
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.main-nav-bar .nav-link:hover, .main-nav-bar .nav-link.active {
    color: var(--orange-deep);
}
.main-nav-bar .nav-link.highlight {
    color: var(--deal-red); font-weight: 700;
}

/* ---------- OpenCart VIP YUVARLAK KATEGORİ VİTRİNİ ---------- */
.yuvarlak-kategori-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
@media (min-width: 576px) { .yuvarlak-kategori-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .yuvarlak-kategori-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 992px) { .yuvarlak-kategori-grid { grid-template-columns: repeat(6, 1fr); } }

.category-round-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.category-round-card:hover {
    transform: translateY(-8px);
}
.category-round-card .round-img-box {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.category-round-card:hover .round-img-box {
    border-color: var(--orange);
    box-shadow: 0 10px 25px var(--orange-ring);
}
.category-round-card .round-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.category-round-card:hover .round-img-box img {
    transform: scale(1.1);
}
.category-round-card .round-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.25;
    margin-bottom: 2px;
    color: var(--ink-2);
    transition: color 0.2s;
}
.category-round-card:hover .round-title { color: var(--orange-deep); }
.category-round-card .round-count {
    font-size: 0.75rem;
    color: var(--muted);
}

/* ---------- OpenCart Journal3 Info Blocks (Güven Çubuğu) ---------- */
.module-info_blocks {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    box-shadow: var(--shadow-sm);
}
.info-block-v3 {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 10px;
}
.info-block-v3 .info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F8F9FA;
    color: var(--orange-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}
.info-block-v3:hover .info-icon {
    background: var(--orange);
    color: #FFF;
    border-color: var(--orange);
    transform: scale(1.1) rotate(5deg);
}
.info-block-v3 .info-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 3px;
}
.info-block-v3 .info-text {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
}

/* ---------- OpenCart VIP Product Card (product-thumb-v3) ---------- */
.product-thumb-v3 {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.product-thumb-v3:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
    box-shadow: var(--shadow-hover);
}
.product-thumb-v3 .image-box {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}
.product-thumb-v3 .image-box img {
    max-height: 170px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-thumb-v3:hover .image-box img {
    transform: scale(1.08);
}
.product-thumb-v3 .product-discount-badge {
    position: absolute;
    top: 0; left: 0;
    background: var(--deal-red);
    color: #FFF;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-md) 0 var(--radius-md) 0;
    z-index: 5;
    letter-spacing: 0.05em;
}
.product-thumb-v3 .product-stock-tag {
    position: absolute;
    top: 0; right: 0;
    background: var(--success-green);
    color: #FFF;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 0 var(--radius-md) 0 var(--radius-md);
    z-index: 5;
}
.product-thumb-v3 .prod-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink-2);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    transition: color 0.2s;
}
.product-thumb-v3:hover .prod-name { color: var(--orange-deep); }
.product-thumb-v3 .rating-stars {
    color: #F39C12;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}
.product-thumb-v3 .price-block {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid #F0F0F0;
}
.product-thumb-v3 .price-new {
    color: var(--ink);
    font-weight: 800;
    font-size: 1.3rem;
}
.product-thumb-v3 .price-old {
    text-decoration: line-through;
    color: #AAAAAA;
    font-size: 0.9rem;
    margin-right: 8px;
    font-weight: 500;
}
.product-thumb-v3 .btn-add-cart {
    background: var(--orange-soft);
    color: var(--orange-deep);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    padding: 8px 15px;
    transition: all 0.3s ease;
}
.product-thumb-v3:hover .btn-add-cart {
    background: var(--orange);
    color: #FFF;
}

/* ---------- Hero Banner Slider ---------- */
.hero-banner-slider {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.hero-banner-item {
    background: #000;
    min-height: 340px;
    position: relative;
}
.hero-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: transform 6s ease;
}
.hero-banner-slider .carousel-item.active .hero-banner-bg {
    transform: scale(1.05);
}
.hero-slide-content h1 {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
}

/* ---------- Flash Sale Countdown Box ---------- */
.flash-sales-box {
    background: url('../img/flash-bg.jpg') center/cover no-repeat, var(--grad-dark);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    color: #FFF;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.flash-sales-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}
.countdown-timer-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.countdown-timer-box .time-num {
    background: var(--deal-red);
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    min-width: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(233,52,38,0.4);
}

/* ---------- Tabs (Çok Satanlar vs) ---------- */
.nav-tabs-custom {
    border-bottom: 2px solid var(--line);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 20px;
}
.nav-tabs-custom .nav-link {
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}
.nav-tabs-custom .nav-link:hover { color: var(--ink); }
.nav-tabs-custom .nav-link.active {
    color: var(--orange-deep);
}
.nav-tabs-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0%;
    height: 2px;
    background: var(--orange-deep);
    transition: width 0.3s ease;
}
.nav-tabs-custom .nav-link.active::after {
    width: 100%;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #111111;
    color: #CCCCCC;
    border-top: 4px solid var(--orange);
    padding-top: 3rem;
}
.site-footer h6 {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.6rem; }
.site-footer a.link {
    color: #999999;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}
.site-footer a.link:hover {
    color: var(--orange);
    padding-left: 5px;
}

/* ---------- Yüzen WhatsApp Sipariş Butonu ---------- */
.floating-wa-btn {
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 1025;
    background: var(--wa-green);
    color: #FFF;
    border-radius: var(--radius-round);
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-wa-btn:hover {
    background: var(--wa-hover);
    color: #FFF;
    transform: translateY(-5px);
}
@media (min-width: 768px) {
    .floating-wa-btn { bottom: 30px; right: 30px; }
}

/* ---------- Mobil Yapışkan Alt Menü ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 65px;
    background: #FFFFFF;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1030;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888888;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    gap: 4px;
    flex: 1;
    height: 100%;
}
.bottom-nav-item i { font-size: 1.3rem; }
.bottom-nav-item.active { color: var(--orange-deep); font-weight: 700; }
.bottom-nav-cta { position: relative; top: -15px; }
.bottom-nav-cta .cta-circle {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--grad-orange);
    color: #FFF;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(253,79,1,0.4);
    font-size: 1.5rem;
    border: 4px solid #FFF;
}
