/* ============================================
   VINCENT VANCE - Optimized Stylesheet
   Modern, Dense, Professional UI
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: #333; line-height: 1.6; }

/* WIDER CONTAINER */
.container { max-width: 1400px; margin: 0 auto; padding: 0 30px; }

/* COLORS */
:root {
    --primary: #C8A961;
    --primary-dark: #B39851;
    --text-dark: #333;
    --text-light: #666;
    --border: #e0e0e0;
}

/* ============================================
   TOP BAR & NAVIGATION
   ============================================ */
.top-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-size: 1.4rem; font-weight: 700; color: var(--primary); text-decoration: none; letter-spacing: 1px; }
.search-bar { flex: 1; max-width: 500px; margin: 0 40px; position: relative; }
.search-bar input { width: 100%; padding: 10px 45px 10px 15px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; }
.search-bar button { position: absolute; right: 0; top: 0; bottom: 0; background: var(--primary); border: none; padding: 0 20px; border-radius: 0 5px 5px 0; color: white; cursor: pointer; font-size: 1.1rem; }
.top-icons { display: flex; gap: 25px; align-items: center; }
.icon-btn { text-decoration: none; color: var(--text-dark); position: relative; font-size: 1rem; font-weight: 500; }
.cart-count { background: var(--primary); color: white; border-radius: 50%; padding: 2px 7px; font-size: 0.7rem; position: absolute; top: -8px; right: -12px; font-weight: bold; }

.main-nav { background: var(--primary); }
.main-nav ul { list-style: none; display: flex; justify-content: center; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a { display: block; padding: 15px 25px; color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; transition: 0.3s; }
.main-nav a:hover { background: rgba(255,255,255,0.15); }

/* ============================================
   HERO CAROUSEL - FIXED HEIGHT
   ============================================ */
.hero-carousel { position: relative; height: 550px; margin-bottom: 20px; }
.swiper { width: 100%; height: 100%; }
.swiper-slide { background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%); }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; height: 100%; padding: 60px 30px; }
.hero-text h3 { color: var(--primary); font-size: 0.85rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.hero-text h1 { font-size: 3.8rem; line-height: 1.1; margin-bottom: 25px; font-weight: 700; }
.hero-text .price { font-size: 1.2rem; color: var(--text-light); margin-bottom: 35px; }
.hero-text .price span { color: var(--primary); font-weight: bold; font-size: 1.8rem; }
.hero-image { height: 420px; border-radius: 10px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.swiper-pagination { bottom: 20px !important; }
.swiper-pagination-bullet { background: var(--primary); width: 12px; height: 12px; opacity: 0.5; }
.swiper-pagination-bullet-active { opacity: 1; transform: scale(1.3); }

/* ============================================
   BUTTONS
   ============================================ */
.btn { display: inline-block; padding: 14px 35px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(200,169,97,0.3); }
.btn-shop { padding: 16px 45px; font-size: 15px; letter-spacing: 1px; }

/* ============================================
   SECTIONS - MINIMAL SPACING
   ============================================ */
.section { padding: 25px 0; }
.section-title { font-size: 2rem; text-align: center; margin-bottom: 25px; color: var(--text-dark); font-weight: 700; }

/* ============================================
   TABS
   ============================================ */
.tabs { display: flex; gap: 40px; margin-bottom: 25px; border-bottom: 2px solid var(--border); justify-content: center; }
.tab { padding: 12px 20px; cursor: pointer; border-bottom: 3px solid transparent; font-weight: 600; color: var(--text-light); transition: 0.3s; font-size: 1rem; }
.tab.active, .tab:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ============================================
   PRODUCT GRID - BIGGER CARDS
   ============================================ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; margin-bottom: 20px; }
.product-card { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.3s; position: relative; }
.product-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.12); transform: translateY(-8px); }
.product-image { height: 260px; background: #f9f9f9; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-image img { transform: scale(1.08); }
.product-badge { top: 12px; left: 12px; background: var(--primary); color: white; width: 130px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; z-index: 2; font-size: 1.3rem; box-shadow: 0 3px 10px rgba(0,0,0,0.15); }
.product-actions { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: 0.3s; z-index: 2; }
.product-card:hover .product-actions { opacity: 1; }
.action-btn { width: 42px; height: 42px; background: white; border: none; border-radius: 50%; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,0.15); transition: 0.3s; font-size: 1.1rem; }
.action-btn:hover { background: var(--primary); color: white; transform: scale(1.15); }
.product-info { padding: 20px; text-align: center; }
.product-name { font-size: 1rem; color: var(--text-dark); margin-bottom: 12px; font-weight: 500; text-decoration: none; display: block; min-height: 48px; line-height: 1.5; }
.product-name:hover { color: var(--primary); }
.product-price { color: var(--primary); font-weight: 700; font-size: 1.3rem; margin-bottom: 15px; }
.product-price-old { color: #999; text-decoration: line-through; font-size: 1rem; margin-left: 10px; font-weight: 500; }
.btn-add-cart { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; transition: 0.3s; font-size: 0.95rem; letter-spacing: 0.5px; }
.btn-add-cart:hover { background: var(--primary-dark); }

/* ============================================
   SHOP BY SHAPE - 2 ROW COMPACT GRID
   ============================================ */

.shape-grid { 
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   grid-template-rows: repeat(2, 1fr);
   gap: 15px;
   padding: 30px 0;
   margin-top: 40px;
}
  
.shape-card {
   position: relative;
   height: 200px; /* Reduced from 280px */
   border-radius: 12px; /* Slightly smaller radius */
   overflow: hidden;
   cursor: pointer;
   transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.shape-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0,0,0,0.7) 100%);
   z-index: 1;
   transition: all 0.4s ease;
}

.shape-card:hover {
   transform: translateY(-5px); /* Reduced from -8px */
   box-shadow: 0 8px 25px rgba(200,169,97,0.25);
}

.shape-card:hover::before {
   background: linear-gradient(180deg, rgba(200,169,97,0.1) 0%, rgba(200,169,97,0.3) 40%, rgba(0,0,0,0.8) 100%);
}

.shape-card img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shape-card:hover img {
   transform: scale(1.08);
}

.shape-label {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   padding: 15px 12px; /* Reduced padding */
   color: white;
   font-size: 0.95rem; /* Smaller font */
   font-weight: 600;
   letter-spacing: 0.5px;
   text-align: center;
   z-index: 2;
   text-transform: uppercase;
   font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
   text-shadow: 0 2px 8px rgba(0,0,0,0.3);
   transition: all 0.3s ease;
}

.shape-card:hover .shape-label {
   padding-bottom: 18px;
   text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* Shine effect on hover */
.shape-card::after {
   content: '';
   position: absolute;
   top: -50%;
   left: -50%;
   width: 200%;
   height: 200%;
   background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
   transform: rotate(45deg);
   transition: all 0.6s ease;
   opacity: 0;
   z-index: 3;
   pointer-events: none;
}

.shape-card:hover::after {
   opacity: 1;
   animation: shine 1.5s ease-in-out;
}

@keyframes shine {
   0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
   100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Responsive - Tablets */
@media (max-width: 1024px) {
   .shape-grid {
       grid-template-columns: repeat(3, 1fr);
       grid-template-rows: auto;
   }
   
   .shape-card {
       height: 180px;
   }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
   .shape-grid {
       grid-template-columns: repeat(2, 1fr);
       gap: 12px;
   }
   
   .shape-card {
       height: 160px;
   }
   
   .shape-label {
       font-size: 0.85rem;
       padding: 12px 10px;
   }
}

@media (max-width: 480px) {
   .shape-grid {
       grid-template-columns: 1fr;
   }
   
   .shape-card {
       height: 200px;
   }
}

/* ============================================
   PROMO BANNERS
   ============================================ */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 25px 0; }
.promo-banner { height: 280px; border-radius: 15px; overflow: hidden; position: relative; cursor: pointer; transition: 0.3s; }
.promo-banner:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.promo-banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; z-index: 0; }
.promo-banner-content { position: relative; z-index: 1; padding: 35px; text-align: center; color: white; text-shadow: 2px 2px 6px rgba(0,0,0,0.4); height: 100%; display: flex; flex-direction: column; justify-content: center; }

/* ============================================
   YELLOW BANNER
   ============================================ */
.yellow-banner { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); padding: 50px 60px; border-radius: 15px; margin: 25px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; overflow: hidden; }
.yellow-banner h3 { font-size: 0.85rem; color: #666; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.yellow-banner h2 { font-size: 3rem; margin-bottom: 20px; color: var(--text-dark); line-height: 1.2; font-weight: 700; }
.yellow-banner p { margin-bottom: 30px; color: #555; line-height: 1.8; font-size: 1.05rem; }
.yellow-banner-image { height: 360px; display: flex; align-items: center; justify-content: center; }
.yellow-banner-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.badge-30 { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); background: white; padding: 28px 38px; border-radius: 50%; font-size: 1.6rem; font-weight: 700; color: #FFA500; text-align: center; line-height: 1.2; box-shadow: 0 5px 25px rgba(0,0,0,0.2); }

/* ============================================
   FOOTER (existing styles preserved)
   ============================================ */
.trust-section { margin-top: 30px; padding: 50px 0; border-top: 1px solid var(--border); background: #f9f9f9; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.trust-item { text-align: center; }
.trust-icon { font-size: 3rem; margin-bottom: 15px; }
.trust-item h4 { margin-bottom: 10px; font-size: 1.1rem; color: var(--text-dark); font-weight: 600; }
.trust-item p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

.footer { background: #2c2c2c; color: #ccc; padding: 50px 0 20px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h3 { color: var(--primary); margin-bottom: 20px; font-size: 1.1rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer ul a:hover { color: var(--primary); }
.social-icons { display: flex; gap: 10px; margin-top: 15px; }
.social-icon { width: 38px; height: 38px; background: #444; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: 0.3s; }
.social-icon:hover { background: var(--primary); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #444; color: #888; }

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

@media (max-width: 768px) {
    .hero-content, .yellow-banner { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-grid, .shape-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}
/* ============================================
   MOBILE OPTIMIZATION FIXES
   ============================================ */

@media (max-width: 768px) {
    /* Fix 1: Hero Carousel - Reduce height */
    .hero-carousel {
        height: 400px !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr !important;
        padding: 30px 20px !important;
        gap: 20px !important;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem !important;
    }
    
    .hero-text h3 {
        font-size: 0.75rem !important;
    }
    
    .hero-text .price {
        font-size: 1rem !important;
    }
    
    .hero-text .price span {
        font-size: 1.4rem !important;
    }
    
    .hero-image {
        height: 250px !important;
    }
    
    /* Fix 2: Product Grid - Force 2 columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-image {
        height: 180px !important;
    }
    
    .product-info {
        padding: 12px !important;
    }
    
    .product-name {
        font-size: 0.85rem !important;
        min-height: 40px !important;
    }
    
    .product-price {
        font-size: 1.1rem !important;
    }
    
    .product-badge {
        width: 50px !important;
        height: 50px !important;
        font-size: 1rem !important;
        top: 8px !important;
        left: 8px !important;
    }
    
    /* Fix 3: Header - Cart/Wishlist badges */
    .container {
        padding: 0 15px !important;
    }
    
    .top-bar {
        font-size: 0.75rem;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    nav {
        padding: 12px 0 !important;
    }
    
    .logo img {
        height: 40px !important;
    }
    
    .nav-links {
        gap: 15px !important;
    }
    
    .nav-links a {
        font-size: 0.8rem !important;
    }
    
    .nav-actions {
        gap: 12px !important;
    }
    
    .icon-btn {
        font-size: 1.1rem !important;
    }
    
    .badge {
        width: 16px !important;
        height: 16px !important;
        font-size: 0.65rem !important;
        top: -6px !important;
        right: -6px !important;
    }
    
    /* Fix 4: Sections */
    .section {
        padding: 20px 0 !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }
    
    /* Fix 5: Shape Grid */
    .shape-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .shape-card {
        height: 150px !important;
    }
    
    .shape-label {
        font-size: 0.8rem !important;
        padding: 10px !important;
    }
    
    /* Fix 6: Promo Banners */
    .promo-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .promo-banner {
        height: 200px !important;
    }
    
    /* Fix 7: Yellow Banner */
    .yellow-banner {
        grid-template-columns: 1fr !important;
        padding: 30px 20px !important;
        gap: 20px !important;
    }
    
    .yellow-banner h2 {
        font-size: 2rem !important;
    }
    
    .yellow-banner p {
        font-size: 0.9rem !important;
    }
    
    .yellow-banner-image {
        height: 200px !important;
    }
    
    .badge-30 {
        position: static !important;
        transform: none !important;
        display: inline-block !important;
        margin: 20px auto !important;
        font-size: 1.2rem !important;
        padding: 20px 25px !important;
    }
    
    /* Fix 8: Tabs */
    .tabs {
        gap: 15px !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab {
        font-size: 0.85rem !important;
        padding: 10px 12px !important;
    }
    
    /* Fix 9: Footer */
    .trust-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 350px !important;
    }
    
    .hero-text h1 {
        font-size: 1.6rem !important;
    }
    
    .hero-image {
        height: 200px !important;
    }
    
    .product-grid {
        gap: 10px !important;
    }
    
    .product-image {
        height: 160px !important;
    }
    
    .shape-card {
        height: 130px !important;
    }
}
