:root {
    --font-sans: "Inter", sans-serif;
    --font-serif: "Playfair Display", serif;
    --color-bg: #fdfbf7;
    --color-text: #2c302e;
    --color-accent: #d4af37;
    --color-danger: #e63946;
    --color-white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
}

.hero {
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Hero giriş animasyonları */
.hero-content > * {
    opacity: 0;
    animation: heroFadeUp 0.75s ease forwards;
}

.hero-content .badge-main  { animation-delay: 0.1s; }
.hero-content h1           { animation-delay: 0.3s; }
.hero-content p            { animation-delay: 0.5s; }
.hero-content .hero-services { animation-delay: 0.7s; }

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background-color: var(--color-accent);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.badge-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    max-width: 90%;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero h1 span {
    font-style: italic;
    color: var(--color-accent);
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto 1.75rem;
}

.hero-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0;
}

.hero-services span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-accent);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    padding: 0 1.5rem;
    position: relative;
}

#tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tab-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--color-accent);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    box-shadow: 0 10px 15px rgba(212, 175, 55, 0.2);
    pointer-events: none;
    opacity: 0;
}

.tab-indicator.visible {
    opacity: 1;
}

.tab-indicator.fade-in {
    animation: fadeIn 0.4s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: var(--color-white);
    color: rgba(44, 48, 46, 0.7);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-family: var(--font-sans);
    position: relative;
    z-index: 1;
    text-decoration: none;
}

.tab svg {
    stroke: var(--color-accent);
    transition: stroke 0.3s ease;
}

.tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-text);
}

.tab.active {
    background: transparent;
    color: var(--color-white);
    box-shadow: none;
}

.tab.active svg {
    stroke: var(--color-white);
}

main {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.5rem 8rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    min-height: 400px;
}

.cards-grid.grid-1,
.subcategory-cards-grid.grid-1 {
    grid-template-columns: minmax(0, 380px);
    justify-content: center;
}

.cards-grid.grid-2,
.subcategory-cards-grid.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 380px));
    justify-content: center;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 2rem;
    border: 1px dashed rgba(212, 175, 55, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.6s forwards;
}

.empty-state h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-text);
}

.empty-state p {
    color: rgba(44, 48, 46, 0.6);
    max-width: 400px;
}

.card {
    background: var(--color-white);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

.card.exiting {
    animation: fadeOutDown 0.3s forwards !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card.sold-out {
    opacity: 0.75;
    filter: grayscale(100%);
    pointer-events: none;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.badge-discount {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: var(--color-danger);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transform: rotate(3deg);
    box-shadow: 0 10px 15px -3px rgba(230, 57, 70, 0.3);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-soldout {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: #1f2937;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transform: rotate(3deg);
}

.badge-note {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(230, 57, 70, 0.1);
    color: var(--color-danger);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card p.desc {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.price-area {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.price-old {
    font-size: 0.875rem;
    opacity: 0.4;
    text-decoration: line-through;
    display: block;
    margin-bottom: 0.25rem;
}

.price-new {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--color-accent);
}

.sold-out .price-new {
    color: #9ca3af;
}

.card-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.card-footer-wa {
    background: rgba(37, 211, 102, 0.1);
    color: #128c7e;
    cursor: pointer;
}

.card-footer-wa:hover {
    background: #25d366;
    color: white;
}

.card-footer-disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: default;
}

.card-footer span {
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}


@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

/* Skeleton olan hero çocukları heroFadeUp yerine shimmer çalıştırır */
.hero-content > .sk-hero {
    opacity: 1;
    animation: shimmer 1.4s infinite linear;
}

/* Hero & Footer skeleton yükleme */
.sk-hero {
    display: inline-block;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, rgba(212,175,55,0.15) 25%, rgba(212,175,55,0.28) 50%, rgba(212,175,55,0.15) 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
    color: transparent !important;
    min-height: 1em;
    vertical-align: middle;
}
.sk-hero-badge        { width: 260px; height: 14px; }
.sk-hero-name-first   { width: 110px; height: 52px; }
.sk-hero-name-last    { width: 220px; height: 52px; }
.sk-hero-desc         { width: 380px; max-width: 90%; height: 14px; margin-top: 4px; }
.sk-footer-name       { width: 200px; height: 22px; }
.sk-footer-subtitle   { width: 260px; height: 14px; margin-top: 6px; }
.sk-footer-copyright  { width: 300px; height: 13px; margin-top: 4px; }

.skeleton-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 4rem;
    padding: 0 1.5rem;
}

.skeleton-tab {
    height: 52px;
    width: 140px;
    border-radius: 1rem;
    background: linear-gradient(90deg, #f0ece3 25%, #e8e2d6 50%, #f0ece3 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}

.skeleton-cards {
    pointer-events: none;
}

.skeleton-card {
    background: var(--color-white);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 220px;
}

.sk-line {
    border-radius: 0.5rem;
    background: linear-gradient(90deg, #f0ece3 25%, #e8e2d6 50%, #f0ece3 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}

.sk-title {
    height: 22px;
    width: 65%;
}

.sk-desc {
    height: 14px;
    width: 90%;
}

.sk-desc.short {
    width: 55%;
}

.sk-price {
    margin-top: auto;
    height: 36px;
    width: 40%;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, #f0ece3 25%, #e8e2d6 50%, #f0ece3 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}

.loading {
    display: none;
}

footer {
    background: white;
    border-top: 1px solid #f3f4f6;
    padding: 3rem 1.5rem;
    text-align: center;
}

footer h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

footer p {
    font-size: 0.875rem;
    opacity: 0.5;
    margin-bottom: 2rem;
}

footer .copyright {
    font-size: 0.875rem;
    opacity: 0.4;
}

/* ========================
   Kategori Sloganı
   ======================== */
.category-slogan {
  display: none;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(44, 48, 46, 0.55);
  margin-bottom: 2rem;
  margin-top: -2rem;
  min-height: 1.6rem;
}

.category-slogan::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  opacity: 1;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ========================
   Alt Kategori Gruplama
   ======================== */
.cards-grid.has-subcategories {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 400px;
}

.subcategory-section {
  margin-bottom: 2rem;
}

.subcategory-header {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.6rem 0;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid rgba(212, 175, 55, 0.35);
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subcategory-header::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.2rem;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.subcategory-header::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.2rem;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.subcategory-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ========================
   Varyant Fiyat Listesi (Kart içi)
   ======================== */
.variant-price-area {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.variant-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.variant-label {
  font-size: 0.875rem;
  color: rgba(44, 48, 46, 0.65);
  font-weight: 500;
  flex-shrink: 0;
}

.variant-prices {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.variant-price-val {
  font-size: 1.15rem !important;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-bg {
        width: 100%;
        height: 400px;
        filter: blur(80px);
    }

    /* Kategoriler: dikey liste */
    .tabs {
        flex-wrap: nowrap;
        overflow: visible;
        justify-content: center;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    #tabs-container {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .tab {
        width: 100%;
        justify-content: flex-start;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 0.875rem;
    }

    /* Mobilde yüzen indicator yerine aktif tab'a doğrudan renk ver */
    .tab-indicator {
        display: none;
    }

    .tab.active {
        background: var(--color-accent);
        color: var(--color-white);
    }

    .tab.active svg {
        stroke: var(--color-white);
    }

    /* Skeleton kategoriler de dikey */
    .skeleton-tabs {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .skeleton-tab {
        width: 100%;
        height: 48px;
    }

    /* Kart grid: tek sütun */
    .cards-grid,
    .cards-grid.grid-1,
    .cards-grid.grid-2,
    .subcategory-cards-grid,
    .subcategory-cards-grid.grid-1,
    .subcategory-cards-grid.grid-2 {
        grid-template-columns: 1fr;
        justify-content: stretch;
        min-height: auto;
    }

    main {
        padding: 0 1rem 4rem;
    }
}
