/* =========================================
   DIPLOMAT PRO SHOP - PREMIUM 3D EDITION
   ========================================= */
:root {
    --gold: #FFC107;
    --dark-blue: #07006b;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --shadow-3d: 0 20px 50px rgba(7, 0, 107, 0.15);
}

body {
    background: #f4f7fc;
    overflow-x: hidden;
}

/* 1. HEADER - uses global style.css */

#cart-count {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#cart-count.bump {
    transform: scale(1.5);
    color: var(--gold);
}

/* 2. 3D HERO SECTION */
.shop-hero-3d {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -5px;
}

.hero-3d-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #05004e 0%, #0a0a9a 100%);
    z-index: 0;
}
/* Abstract Shapes in BG */
.hero-3d-bg::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 60%);
    opacity: 0.1;
    filter: blur(80px);
}

.premium-badge {
    display: inline-block;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: rgba(255, 193, 7, 0.1);
}

.hero-3d-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.stroke-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--gold);
    position: relative;
}

.hero-3d-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-bottom: 40px;
    border-left: 3px solid var(--gold);
    padding-left: 20px;
}

.btn-3d-action {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gold);
    color: var(--dark-blue);
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 10px 0 #cc9a06, 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.2s;
    transform: translateY(0);
}
.btn-3d-action:active {
    transform: translateY(10px);
    box-shadow: 0 0 0 #cc9a06, 0 0 0 rgba(0,0,0,0.2);
}

/* Floating Hero Object */
.floating-hero-obj {
    position: relative;
    perspective: 1000px;
}
.hero-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: -1;
    animation: spin 20s linear infinite;
}
@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* 3. GLASSMORPHISM SIDEBAR */
.shop-sidebar-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-3d);
}
.sticky-sidebar { position: sticky; top: 100px; }

.widget-title {
    font-family: 'Unbounded';
    font-size: 1.1rem;
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(7,0,107,0.1);
    padding-bottom: 10px;
}

.search-box-glass {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}
.search-box-glass input {
    width: 100%; border: none; background: transparent;
    padding: 12px 15px; outline: none;
}
.search-box-glass button {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    border: none; background: #fff; color: var(--gold); font-size: 1.1rem;
}

.category-list-modern { list-style: none; padding: 0; }
.category-list-modern li { margin-bottom: 12px; }
.category-list-modern a {
    display: flex; justify-content: space-between;
    text-decoration: none; color: #555;
    font-weight: 500; transition: 0.3s;
    padding: 8px 12px; border-radius: 8px;
}
.category-list-modern a:hover, .category-list-modern a.active {
    background: var(--dark-blue); color: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(7,0,107,0.2);
}
.category-list-modern .count {
    background: rgba(0,0,0,0.05);
    padding: 2px 8px; border-radius: 10px; font-size: 0.8rem;
    color: #888; transition: 0.3s;
}
.category-list-modern a:hover .count { background: rgba(255,255,255,0.2); color: #fff; }

.styled-range {
    width: 100%; height: 6px; background: #ddd; border-radius: 5px; outline: none;
    accent-color: var(--dark-blue);
}
.sidebar-promo-3d {
    margin-top: 30px;
    background: linear-gradient(135deg, var(--gold), #ff9800);
    border-radius: 15px;
    padding: 20px;
    color: var(--dark-blue);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s;
}
.sidebar-promo-3d:hover { transform: translateY(-5px) rotateX(10deg); }

/* 4. 3D PRODUCT CARDS (THE MAIN EVENT) */
.product-card-3d {
    position: relative;
    height: 420px;
    width: 100%;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.card-3d-inner {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%; height: 100%;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
    /* 3D Elements */
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.product-card-3d:hover .card-3d-inner {
    box-shadow: 0 30px 60px rgba(7, 0, 107, 0.15);
    border-color: transparent;
}

.badge-3d {
    position: absolute; top: 20px; left: 20px;
    padding: 5px 15px; border-radius: 20px;
    color: #fff; font-weight: 800; font-size: 0.8rem;
    transform: translateZ(30px); /* Floating Badge */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2;
}
.badge-3d.sale { background: #e74c3c; }
.badge-3d.new { background: var(--dark-blue); }

.img-box-3d {
    position: relative;
    height: 250px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(20px); /* Image pops out */
    margin-bottom: 20px;
}
.img-box-3d img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
/* Zoom effekti */
.product-card-3d:hover img { transform: scale(1.1); }

.overlay-3d {
    position: absolute; inset: 0;
    background: rgba(7, 0, 107, 0.4);
    display: flex; align-items: center; justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: 0.3s;
    backdrop-filter: blur(3px);
}
.product-card-3d:hover .overlay-3d { opacity: 1; }

.btn-icon-3d {
    width: 50px; height: 50px;
    border-radius: 50%; border: none;
    background: #fff; color: var(--dark-blue);
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.product-card-3d:hover .btn-icon-3d { transform: translateY(0); }
.btn-icon-3d:hover { background: var(--gold); color: #fff; transform: scale(1.1); }

.content-3d {
    transform: translateZ(30px); /* Text floats */
    text-align: left;
}
.rating { font-size: 0.8rem; margin-bottom: 8px; }

.title-3d {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.price-3d {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}
.price-3d .new { color: var(--dark-blue); font-size: 1.1rem; }
.price-3d .old { color: #aaa; text-decoration: line-through; font-size: 0.9rem; }

/* 5. GLASS TOOLBAR */
.shop-toolbar-glass {
    background: #fff;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}
.glass-select {
    border: 1px solid #eee; border-radius: 20px;
    padding: 8px 30px 8px 15px; font-size: 0.9rem;
    cursor: pointer;
}

/* 6. TOAST ANIMATION */
.fade-in-up {
    animation: fadeInUp 0.4s ease forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .hero-3d-title { font-size: 3rem; }
    .sticky-sidebar { position: static; margin-bottom: 40px; }
    .shop-hero-3d { height: auto; padding: 60px 0; text-align: center; }
    .hero-3d-desc { border: none; padding: 0; }
}