/* ==========================================================================
   GORILA PRODUCTS — OFFICIAL DESIGN SYSTEM & STYLESHEET
   Brand Colors: Crimson Red (#D32323), Dark Slate (#111827), Amber (#F59E0B)
   ========================================================================== */

:root {
    --gp-primary: #D32323;
    --gp-primary-hover: #B71C1C;
    --gp-primary-light: #FFEBEE;
    --gp-primary-subtle: rgba(211, 35, 35, 0.08);
    --gp-secondary: #111827;
    --gp-secondary-light: #1F2937;
    --gp-accent: #EA580C;
    --gp-accent-amber: #F59E0B;
    --gp-accent-light: #FFFBEB;
    --gp-success: #10B981;
    --gp-warning: #F59E0B;
    --gp-danger: #EF4444;
    --gp-info: #0284C7;
    --gp-bg: #F8FAFC;
    --gp-surface: #FFFFFF;
    --gp-border: #E2E8F0;
    --gp-border-light: #F1F5F9;
    --gp-text-main: #0F172A;
    --gp-text-muted: #64748B;
    --gp-text-light: #94A3B8;
    --gp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --gp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --gp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --gp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --gp-radius: 12px;
    --gp-radius-lg: 16px;
    --gp-radius-pill: 50px;
    --gp-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

a {
    color: var(--gp-primary);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
a:hover {
    color: var(--gp-primary-hover);
}

/* --------------------------------------------------------------------------
   Top Announcement Bar
   -------------------------------------------------------------------------- */
.top-announcement-bar {
    background: linear-gradient(90deg, #111827 0%, #1F2937 50%, #111827 100%);
    color: #F8FAFC;
    font-size: 0.825rem;
    font-weight: 500;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-announcement-bar a {
    color: #F8FAFC;
    opacity: 0.9;
}
.top-announcement-bar a:hover {
    opacity: 1;
    color: #FFD54F;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.main-navbar {
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.navbar-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s;
}
.navbar-brand:hover img {
    transform: scale(1.02);
}

.search-bar-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
}
.search-bar-input {
    border: 2px solid var(--gp-border);
    border-radius: var(--gp-radius-pill);
    padding: 10px 48px 10px 20px;
    font-size: 0.925rem;
    background-color: #F8FAFC;
    transition: all 0.2s;
}
.search-bar-input:focus {
    background-color: #FFFFFF;
    border-color: var(--gp-primary);
    box-shadow: 0 0 0 3px rgba(211, 35, 35, 0.15);
}
.search-bar-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gp-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.search-bar-btn:hover {
    background: var(--gp-primary-hover);
}

.header-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #F1F5F9;
    color: var(--gp-secondary);
    transition: all 0.2s;
}
.header-action-btn:hover {
    background-color: var(--gp-primary-light);
    color: var(--gp-primary);
}
.header-action-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: var(--gp-primary);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

.nav-link {
    color: var(--gp-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--gp-primary) !important;
    background-color: var(--gp-primary-subtle);
}

/* --------------------------------------------------------------------------
   Hero Section - Background Banner Layout
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    background: url('../images/hero_banner.jpg') center right / cover no-repeat;
    padding: 100px 0 90px;
    border-bottom: 1px solid var(--gp-border);
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 48%, rgba(255, 255, 255, 0.65) 75%, rgba(255, 255, 255, 0.2) 100%);
    z-index: 1;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gp-primary-light);
    color: var(--gp-primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: var(--gp-radius-pill);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(211, 35, 35, 0.12);
}
.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-title span {
    color: var(--gp-primary);
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 580px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-gp-primary {
    background: var(--gp-primary);
    color: #FFFFFF;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--gp-radius-pill);
    border: none;
    box-shadow: 0 4px 14px rgba(211, 35, 35, 0.35);
    transition: all 0.25s ease;
}
.btn-gp-primary:hover {
    background: var(--gp-primary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 35, 35, 0.45);
}
.btn-gp-secondary {
    background: #FFFFFF;
    color: var(--gp-secondary);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--gp-radius-pill);
    border: 2px solid var(--gp-border);
    transition: all 0.2s ease;
}
.btn-gp-secondary:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: var(--gp-secondary);
}

/* --------------------------------------------------------------------------
   Product Cards
   -------------------------------------------------------------------------- */
.gp-product-card {
    background: #FFFFFF;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius-lg);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.gp-product-card:hover {
    border-color: #CBD5E1;
    transform: translateY(-5px);
    box-shadow: var(--gp-shadow-xl);
}
.gp-product-thumb {
    position: relative;
    background: #FFFFFF;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    overflow: hidden;
}
.gp-product-thumb img {
    max-height: 190px;
    width: auto;
    object-fit: contain;
    transition: transform 0.35s ease;
}
.gp-product-card:hover .gp-product-thumb img {
    transform: scale(1.08);
}
.gp-product-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.gp-badge {
    font-size: 0.725rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--gp-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gp-badge-sale {
    background: var(--gp-primary);
    color: #FFFFFF;
}
.gp-badge-new {
    background: var(--gp-info);
    color: #FFFFFF;
}
.gp-badge-bestseller {
    background: var(--gp-accent-amber);
    color: #111827;
}

.gp-wishlist-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    border: none;
    z-index: 3;
}
.gp-wishlist-toggle:hover, .gp-wishlist-toggle.active {
    color: var(--gp-primary);
    background: var(--gp-primary-light);
}

.gp-product-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.gp-product-category {
    font-size: 0.785rem;
    font-weight: 600;
    color: var(--gp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.gp-product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gp-text-main);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}
.gp-product-title a {
    color: inherit;
}
.gp-product-title a:hover {
    color: var(--gp-primary);
}
.gp-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--gp-accent-amber);
    margin-bottom: 12px;
}
.gp-product-rating span {
    color: var(--gp-text-muted);
    font-size: 0.75rem;
    margin-left: 4px;
}
.gp-product-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 16px;
}
.gp-price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gp-primary);
}
.gp-price-original {
    font-size: 0.9rem;
    color: var(--gp-text-light);
    text-decoration: line-through;
}

.gp-btn-add-cart {
    width: 100%;
    background: #F1F5F9;
    color: var(--gp-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 10px;
    border-radius: var(--gp-radius-pill);
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.gp-btn-add-cart:hover {
    background: var(--gp-primary);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Category Cards
   -------------------------------------------------------------------------- */
.gp-category-card {
    background: #FFFFFF;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.gp-category-card:hover {
    border-color: var(--gp-primary);
    transform: translateY(-4px);
    box-shadow: var(--gp-shadow-lg);
}
.gp-category-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #FFF5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.25s;
}
.gp-category-icon-box img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}
.gp-category-card:hover .gp-category-icon-box {
    transform: scale(1.1);
    background: var(--gp-primary-light);
}
.gp-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gp-text-main);
    margin-bottom: 4px;
}
.gp-category-count {
    font-size: 0.825rem;
    color: var(--gp-text-muted);
}

/* --------------------------------------------------------------------------
   Why Choose Us Section
   -------------------------------------------------------------------------- */
.feature-box {
    background: #FFFFFF;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    padding: 24px 20px;
    transition: all 0.2s;
    height: 100%;
}
.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--gp-shadow-md);
    border-color: var(--gp-primary);
}
.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gp-primary-light);
    color: var(--gp-primary);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Promo Banner
   -------------------------------------------------------------------------- */
.promo-banner {
    background: linear-gradient(135deg, #111827 0%, #1F2937 60%, #991B1B 100%);
    color: #FFFFFF;
    border-radius: var(--gp-radius-lg);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.main-footer {
    background: #0B1120;
    color: #CBD5E1;
    padding-top: 60px;
    border-top: 1px solid #1E293B;
}
.main-footer p,
.main-footer .text-muted {
    color: #94A3B8 !important;
    line-height: 1.65;
}
.main-footer strong {
    color: #FFFFFF;
}
.main-footer a {
    text-decoration: none !important;
}

.footer-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 0.3px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 3px;
    background: #D32323;
    border-radius: 3px;
}

.footer-description {
    color: #94A3B8;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-lead-text {
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact-list {
    margin-top: 15px;
}
.footer-contact-item {
    color: #CBD5E1;
    font-size: 0.88rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-contact-item i {
    color: #EF4444;
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #CBD5E1 !important;
    font-size: 0.92rem;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    display: inline-block;
}
.footer-links a:hover {
    color: #FFFFFF !important;
    padding-left: 6px;
    text-decoration: none !important;
}

.footer-bottom {
    background: #060B14;
    padding: 22px 0;
    margin-top: 50px;
    border-top: 1px solid #1E293B;
    font-size: 0.875rem;
    color: #94A3B8;
}
.footer-bottom strong {
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Search Autocomplete Dropdown
   -------------------------------------------------------------------------- */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow-xl);
    z-index: 1050;
    max-height: 380px;
    overflow-y: auto;
    display: none;
}
.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--gp-border-light);
    color: var(--gp-text-main);
}
.search-item:hover {
    background: #F8FAFC;
    color: var(--gp-primary);
}
.search-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   Product Details Page
   -------------------------------------------------------------------------- */
.product-detail-gallery-main {
    background: #FFFFFF;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius-lg);
    padding: 30px;
    text-align: center;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail-gallery-main img {
    max-height: 380px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}
.product-detail-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.thumb-item {
    width: 72px;
    height: 72px;
    border: 2px solid var(--gp-border);
    border-radius: var(--gp-radius);
    padding: 6px;
    cursor: pointer;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.thumb-item.active, .thumb-item:hover {
    border-color: var(--gp-primary);
}
.thumb-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Responsive tweaks */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .search-bar-wrapper {
        max-width: 100%;
        margin-top: 12px;
    }
}

/* --------------------------------------------------------------------------
   Swiper Sliders (Categories & Testimonials)
   -------------------------------------------------------------------------- */
.category-swiper,
.testimonial-swiper {
    padding: 10px 4px 45px !important;
    position: relative;
    overflow: hidden;
}

.category-swiper .swiper-slide {
    height: auto;
}

.swiper-nav-btn {
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    color: #0F172A;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gp-border);
    transition: all 0.25s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}
.swiper-nav-btn::after {
    font-size: 1rem !important;
    font-weight: 800;
}
.swiper-nav-btn:hover {
    background: #D32323;
    color: #FFFFFF;
    border-color: #D32323;
    transform: scale(1.08);
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #94A3B8;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
    background: #D32323 !important;
    width: 24px !important;
    border-radius: 6px !important;
    opacity: 1 !important;
}
