:root {
    --primary: #0d3b4f;
    --primary-dark: #092a39;
    --secondary: #c8461a;
    --secondary-dark: #a63a15;
    --accent: #c8461a;
    --dark: #0a1e2a;
    --light: #F5F7FA;
}

body { font-family: 'Instrument Sans', sans-serif; }
html { scroll-behavior: smooth; }

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}
.top-bar a { color: var(--secondary); text-decoration: none; }
.top-bar a:hover { color: #fff; }

/* Navbar */
.navbar-main {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 0.75rem 0;
}
.navbar-main .navbar-brand img { height: 50px; }
.navbar-main .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active { color: var(--primary); }
.navbar-main .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.navbar-main .btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

/* Hero Modern */
.hero-modern {
    background: linear-gradient(135deg, #0a1e2a 0%, #0d3b4f 40%, #14566f 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}
.shape-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -100px; animation: floatShape 20s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -150px; left: -100px; animation: floatShape 25s ease-in-out infinite reverse; }
.shape-3 { width: 300px; height: 300px; background: #c8461a; top: 50%; left: 40%; animation: floatShape 18s ease-in-out infinite 3s; }
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 35px) scale(1.02); }
}
.hero-slide-content { animation: heroSlideIn 0.8s ease-out; }
.carousel-item.active .hero-slide-content { animation: heroSlideIn 0.8s ease-out; }
.carousel-item.active .hero-product-img { animation: heroImgIn 0.9s cubic-bezier(0.16,1,0.3,1); }
.carousel-item.active .hero-float-badge-1 { animation: heroBadgeIn 0.6s ease-out 0.4s both; }
.carousel-item.active .hero-float-badge-2 { animation: heroBadgeIn 0.6s ease-out 0.6s both; }
.carousel-item.active .hero-float-badge-3 { animation: heroBadgeIn 0.6s ease-out 0.8s both; }
@keyframes heroSlideIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroImgIn {
    from { opacity: 0; transform: scale(0.85) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes heroBadgeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-row { min-height: 85vh; padding: 2rem 0; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(200,70,26,0.12); color: var(--secondary);
    padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1.25rem; letter-spacing: 0.5px;
}
.hero-tag-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--secondary);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800;
    line-height: 1.1; margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc { font-size: 1.1rem; opacity: 0.75; line-height: 1.7; margin-bottom: 1.5rem; max-width: 500px; }
.hero-price { margin-bottom: 2rem; }
.hero-price-label { display: block; font-size: 0.8rem; opacity: 0.5; text-transform: uppercase; letter-spacing: 1px; }
.hero-price-value { font-size: 2rem; font-weight: 800; color: var(--secondary); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn-primary {
    background: var(--secondary); color: #fff; border: none;
    padding: 14px 32px; border-radius: 12px; font-weight: 600;
    font-size: 1rem; position: relative; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,70,26,0.35); color: #fff; }
.btn-shine {
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}
@keyframes shine { 0% { left: -100%; } 30%, 100% { left: 100%; } }
.hero-btn-outline {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 28px; border-radius: 12px; font-weight: 600;
    transition: all 0.3s;
}
.hero-btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }
.hero-image-wrapper { position: relative; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.hero-image-glow {
    position: absolute; width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(13,59,79,0.25) 0%, transparent 70%);
    border-radius: 50%; filter: blur(40px); animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.1); opacity: 1; } }
.hero-product-img {
    position: relative; z-index: 2; max-height: 520px; width: auto; max-width: 100%;
    object-fit: contain; filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.hero-image-wrapper:hover .hero-product-img { transform: scale(1.03) rotate(1deg); }
.hero-trust-strip {
    display: flex; gap: 12px; justify-content: center;
    flex-wrap: nowrap; padding: 16px 0 24px;
    position: relative; z-index: 5;
}
.hero-trust-badge {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px; padding: 10px 18px;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; font-weight: 600; color: #fff;
    white-space: nowrap; transition: transform 0.3s, background 0.3s;
}
.hero-trust-badge:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.hero-trust-badge i { color: var(--secondary); font-size: 1.1rem; }
.hero-indicators {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
}
.hero-indicators button {
    width: 40px; height: 4px; border: none; border-radius: 4px;
    background: rgba(255,255,255,0.25); padding: 0; cursor: pointer;
    position: relative; overflow: hidden; transition: width 0.3s;
}
.hero-indicators button.active { width: 60px; background: rgba(255,255,255,0.35); }
.hero-indicator-fill {
    position: absolute; top: 0; left: 0; height: 100%;
    background: var(--secondary); border-radius: 4px; width: 0;
}
.hero-indicators button.active .hero-indicator-fill { animation: indicatorFill 6s linear; }
@keyframes indicatorFill { from { width: 0; } to { width: 100%; } }
.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 48px; height: 48px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    color: #fff; font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.hero-nav:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }
.hero-nav-prev { left: 20px; }
.hero-nav-next { right: 20px; }
.hero-scroll-hint {
    position: absolute; bottom: 30px; left: 30px; z-index: 10;
    display: flex; align-items: center; gap: 10px;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    text-decoration: none; cursor: pointer;
    transition: color 0.2s;
}
.hero-scroll-hint:hover { color: rgba(255,255,255,0.7); }
.hero-scroll-line { width: 40px; height: 1px; background: rgba(255,255,255,0.3); }
#shop-categories { scroll-margin-top: 90px; }
@media (max-width: 991px) {
    .hero-row { min-height: auto; padding: 1.5rem 0 0; }
    .hero-nav { display: none; }
    .hero-product-img { max-height: 300px; }
    .hero-scroll-hint { display: none; }
    .hero-title { font-size: 1.8rem; }
    .hero-desc { font-size: 0.95rem; margin-bottom: 1rem; }
    .hero-price-value { font-size: 1.5rem; }
    .hero-price { margin-bottom: 1.25rem; }
    .hero-trust-strip { gap: 8px; padding: 10px 0 20px; }
    .hero-trust-badge { padding: 8px 12px; font-size: 0.75rem; border-radius: 10px; }
    .hero-trust-badge i { font-size: 0.95rem; }
    .hero-image-wrapper { padding: 1rem 0; }
}
@media (max-width: 575px) {
    .hero-title { font-size: 1.5rem; }
    .hero-desc { font-size: 0.85rem; }
    .hero-actions { gap: 8px; }
    .hero-btn-primary, .hero-btn-outline { padding: 10px 18px; font-size: 0.85rem; }
    .hero-trust-badge { padding: 6px 10px; font-size: 0.7rem; gap: 5px; }
    .hero-trust-badge i { font-size: 0.85rem; }
    .hero-product-img { max-height: 240px; }
}

/* Buttons */
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); color: #fff; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Product Cards */
.product-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
}
.product-card .badge-featured {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: #fff;
    font-weight: 600;
}
.product-card .price {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
}
.product-card .price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

/* Categories */
.category-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}
.category-card:hover { transform: scale(1.03); }
.category-card i { font-size: 3rem; margin-bottom: 1rem; color: var(--secondary); }

/* Features */
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(13, 59, 79, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.9);
    padding: 4rem 0 2rem;
}
.footer h5 { color: #e8a04a; margin-bottom: 1.5rem; font-weight: 700; }
.footer a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: #e8a04a; text-decoration: underline; }
.footer p, .footer li { color: rgba(255,255,255,0.85); }
.footer .footer-contact-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 0;
    max-width: 100%;
}
.footer .footer-contact-link:hover .text-secondary { color: #fff !important; }
.footer .footer-contact-hours { display: inline-block; padding-left: 1.65rem; }
.footer .footer-logo {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 10px 16px;
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
}
.footer .footer-logo:hover { opacity: 0.9; }
.footer .text-secondary { color: #e8a04a !important; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 2rem;
    margin-top: 3rem;
    color: rgba(255,255,255,0.7);
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    color: #fff;
    transition: background 0.2s, transform 0.2s;
}
.social-links a:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}
.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}
.whatsapp-float a:hover { transform: scale(1.1); }

/* Grace Chat Widget */
.grace-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Instrument Sans', sans-serif;
}
.grace-toggle {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; border: none; border-radius: 50%;
    font-size: 1.4rem; cursor: pointer;
    box-shadow: 0 6px 25px rgba(13,59,79,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.grace-toggle:hover { transform: scale(1.08); box-shadow: 0 8px 30px rgba(13,59,79,0.5); }
.grace-toggle .grace-badge {
    position: absolute; top: -2px; right: -2px;
    width: 14px; height: 14px; background: var(--secondary);
    border-radius: 50%; border: 2px solid #fff;
    animation: pulse 2s infinite;
}
.grace-box {
    display: none; position: fixed;
    bottom: 90px; right: 20px;
    width: 380px; height: 560px; max-height: calc(100vh - 120px);
    background: #fff; border-radius: 20px;
    box-shadow: 0 16px 60px rgba(0,0,0,0.2);
    overflow: hidden; flex-direction: column;
    animation: chatSlideUp 0.35s cubic-bezier(0.16,1,0.3,1);
}
.grace-box.active { display: flex; }
@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.grace-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; padding: 16px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.grace-header-info { display: flex; align-items: center; gap: 12px; }
.grace-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.grace-header-name { font-weight: 700; font-size: 0.95rem; }
.grace-header-status { font-size: 0.75rem; opacity: 0.8; display: flex; align-items: center; gap: 5px; }
.grace-header-status .online-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--secondary); display: inline-block;
}
.grace-close { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0.8; }
.grace-close:hover { opacity: 1; }
.grace-body {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px;
    background: #f7f8fa;
    scroll-behavior: smooth;
}
.grace-body::-webkit-scrollbar { width: 4px; }
.grace-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
.grace-msg { margin-bottom: 12px; display: flex; gap: 8px; }
.grace-msg.user { flex-direction: row-reverse; }
.grace-msg-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; flex-shrink: 0; margin-top: 2px;
}
.grace-msg.user .grace-msg-avatar { background: #e0e0e0; color: #666; }
.grace-msg-bubble {
    max-width: 80%; padding: 10px 14px;
    border-radius: 16px; font-size: 0.88rem; line-height: 1.5;
    word-wrap: break-word; white-space: pre-wrap;
}
.grace-msg:not(.user) .grace-msg-bubble {
    background: #fff; color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.grace-msg.user .grace-msg-bubble {
    background: var(--primary); color: #fff;
    border-bottom-right-radius: 4px;
}
.grace-typing { display: flex; align-items: center; gap: 4px; padding: 4px 0; }
.grace-typing span {
    width: 6px; height: 6px; border-radius: 50%; background: #aaa;
    animation: typingDot 1.4s infinite;
}
.grace-typing span:nth-child(2) { animation-delay: 0.2s; }
.grace-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}
.grace-footer {
    flex-shrink: 0; border-top: 1px solid #eee; padding: 12px 16px;
    background: #fff;
}
.grace-footer:empty { display: none; }
.grace-input-row { display: flex; gap: 8px; }
.grace-input-row input {
    flex: 1; border: 1px solid #e0e0e0; border-radius: 24px;
    padding: 10px 16px; font-size: 0.88rem; outline: none;
    transition: border-color 0.2s;
}
.grace-input-row input:focus { border-color: var(--primary); }
.grace-input-row button {
    width: 40px; height: 40px; border-radius: 50%;
    border: none; background: var(--primary); color: #fff;
    font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.grace-input-row button:hover { background: var(--primary-dark); }
.grace-contact-form { padding: 0; margin-top: 8px; }
.grace-contact-form .form-control {
    border-radius: 10px; font-size: 0.85rem;
    padding: 8px 12px; border: 1px solid #e0e0e0;
}
.grace-contact-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(13,59,79,0.1); }
.grace-contact-form .btn { border-radius: 10px; font-size: 0.85rem; font-weight: 600; }
.grace-contact-note { font-size: 0.75rem; color: #888; margin-top: 8px; text-align: center; }
.grace-powered { flex-shrink: 0; text-align: center; font-size: 0.65rem; color: #bbb; padding: 4px 0 6px; background: #fff; }
@media (max-width: 480px) {
    .grace-box { width: calc(100vw - 24px); right: -8px; height: 480px; border-radius: 16px; }
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border-radius: 8px;
    margin: 0 2px;
    min-width: 40px;
    text-align: center;
}
.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination .page-item.active .page-link:hover,
.pagination .page-item.active .page-link:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    color: #adb5bd;
}
