/* ============================================================
   Gulezan Shop — Product Grid Styles v1.2.0
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
    --gs-accent: #2a2a2a;
    --gs-accent-hover: #444;
    --gs-bg: #fafafa;
    --gs-card-bg: #fff;
    --gs-text: #1a1a1a;
    --gs-text-light: #777;
    --gs-border: #eee;
    --gs-sale: #e25555;
    --gs-new: #2a9d5c;
    --gs-radius: 12px;
    --gs-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --gs-shadow-hover: 0 12px 36px rgba(0,0,0,0.12);
    --gs-transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- CONTAINER ---- */
.gs-shop {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   PAGE HEADER & BREADCRUMB
   ============================================================ */
.gs-page-header {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-radius: 14px;
    margin-bottom: 36px;
    padding: 36px 32px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gs-page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: rgba(0,0,0,0.018);
    border-radius: 50%;
    pointer-events: none;
}

.gs-page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(0,0,0,0.015);
    border-radius: 50%;
    pointer-events: none;
}

.gs-page-header-inner {
    position: relative;
    z-index: 1;
}

.gs-page-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--gs-text);
    letter-spacing: -0.5px;
    margin: 0 0 10px;
    line-height: 1.2;
}

/* ---- BREADCRUMB ---- */
.gs-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: 13.5px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.gs-breadcrumb a {
    color: var(--gs-text-light);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.gs-breadcrumb a:hover {
    color: var(--gs-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gs-bc-sep {
    display: inline-block;
    margin: 0 8px;
    color: #bbb;
    font-weight: 400;
    font-size: 12px;
}

.gs-bc-current {
    color: var(--gs-text);
    font-weight: 600;
}

/* ---- PAGE DESCRIPTION (category/tag) ---- */
.gs-page-desc {
    font-size: 14px;
    color: var(--gs-text-light);
    max-width: 560px;
    margin: 0 auto 12px;
    line-height: 1.6;
}

.gs-page-desc p { margin: 0; }

/* ---- RESULT COUNT ---- */
.gs-result-count {
    display: inline-block;
    font-size: 12.5px;
    color: var(--gs-text-light);
    background: rgba(0,0,0,0.045);
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* ============================================================
   GRID
   ============================================================ */
.gs-grid {
    display: grid;
    gap: 24px;
}

.gs-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gs-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gs-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gs-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* ============================================================
   CARD
   ============================================================ */
.gs-card {
    background: var(--gs-card-bg);
    border-radius: var(--gs-radius);
    overflow: hidden;
    box-shadow: var(--gs-shadow);
    transition: transform var(--gs-transition), box-shadow var(--gs-transition);
    position: relative;
}

.gs-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gs-shadow-hover);
}

.gs-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

/* ---- IMAGE WRAPPER ---- */
.gs-card-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.gs-card-img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.45s ease, transform 0.55s ease;
}

.gs-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.gs-card:hover .gs-img-primary {
    opacity: 0;
}

.gs-card:hover .gs-img-hover {
    opacity: 1;
    transform: scale(1.04);
}

.gs-card:hover .gs-img-primary:only-child {
    opacity: 1;
    transform: scale(1.04);
}

/* ---- BADGES ---- */
.gs-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 2;
    line-height: 1.4;
    color: #fff;
}

.gs-badge-sale {
    background: var(--gs-sale);
}

.gs-badge-new {
    background: var(--gs-new);
}

/* ---- CARD BODY ---- */
.gs-card-body {
    padding: 16px 18px 20px;
}

.gs-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gs-text);
    margin: 0 0 6px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.1px;
}

/* ---- RATING ---- */
.gs-rating {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 6px;
}

.gs-star {
    font-size: 13px;
    color: #ddd;
    line-height: 1;
}

.gs-star-filled {
    color: #f5a623;
}

.gs-rating-count {
    font-size: 11px;
    color: var(--gs-text-light);
    margin-left: 4px;
}

/* ---- PRICE ---- */
.gs-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--gs-text);
    line-height: 1.4;
}

.gs-price del {
    color: #bbb;
    font-weight: 400;
    font-size: 13px;
    margin-right: 6px;
    text-decoration: line-through;
}

.gs-price ins {
    text-decoration: none;
    color: var(--gs-sale);
    font-weight: 700;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.gs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 48px 0 24px;
    flex-wrap: wrap;
}

.gs-pagination a,
.gs-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--gs-text);
    background: #f5f5f5;
    border: 1px solid var(--gs-border);
}

.gs-pagination a:hover {
    background: var(--gs-accent);
    color: #fff;
    border-color: var(--gs-accent);
}

.gs-pagination span.current {
    background: var(--gs-accent);
    color: #fff;
    border-color: var(--gs-accent);
}

.gs-pagination .dots {
    background: transparent;
    border: none;
    color: var(--gs-text-light);
    min-width: 30px;
}

.gs-pagination .prev,
.gs-pagination .next {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.gs-empty {
    text-align: center;
    padding: 80px 20px;
}

.gs-empty svg {
    margin-bottom: 20px;
}

.gs-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--gs-text);
    margin: 0 0 8px;
}

.gs-empty-desc {
    font-size: 14px;
    color: var(--gs-text-light);
    margin: 0;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.gs-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    animation: gs-fallback 0.5s ease 0.8s both;
}

.gs-reveal.gs-visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

@keyframes gs-fallback {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .gs-cols-4 { grid-template-columns: repeat(3, 1fr); }
    .gs-cols-5 { grid-template-columns: repeat(3, 1fr); }

    .gs-page-header { padding: 28px 24px 24px; }
    .gs-page-title { font-size: 26px; }
}

@media (max-width: 768px) {
    .gs-cols-3,
    .gs-cols-4,
    .gs-cols-5 { grid-template-columns: repeat(2, 1fr); }

    .gs-grid { gap: 14px; }
    .gs-card-body { padding: 12px 14px 16px; }
    .gs-card-title { font-size: 13px; }
    .gs-price { font-size: 14px; }

    .gs-page-header {
        padding: 24px 20px 20px;
        margin-bottom: 28px;
        border-radius: 12px;
    }
    .gs-page-title { font-size: 22px; }
    .gs-breadcrumb { font-size: 12.5px; }
}

@media (max-width: 480px) {
    .gs-grid { gap: 10px; }
    .gs-card { border-radius: 10px; }
    .gs-card-body { padding: 10px 12px 14px; }
    .gs-card-title { font-size: 12.5px; }
    .gs-price { font-size: 13px; }
    .gs-badge { font-size: 9px; padding: 3px 8px; top: 8px; left: 8px; }

    .gs-page-header {
        padding: 20px 16px 18px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    .gs-page-title { font-size: 20px; margin-bottom: 8px; }
    .gs-breadcrumb { font-size: 12px; margin-bottom: 10px; }
    .gs-bc-sep { margin: 0 5px; }
    .gs-result-count { font-size: 11.5px; padding: 3px 12px; }

    .gs-pagination a,
    .gs-pagination span { min-width: 34px; height: 34px; font-size: 13px; padding: 0 10px; }
}
