/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.logo h1 span {
    color: #e94560;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a {
    color: #ccc;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: #e94560;
    color: #fff;
}

/* Cart Link in Header */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px !important;
}

.cart-link svg {
    stroke: #ccc;
    transition: stroke 0.3s;
}

.cart-link:hover svg,
.cart-link.active svg {
    stroke: #fff;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e94560;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: #aaa;
}

/* Categories Grid */
.categories-grid {
    padding: 50px 0;
    background: #fff;
}

.categories-grid h2,
.featured-products h2,
.related-products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1a1a2e;
}

.categories-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding-bottom: 0;
}

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

.category-image {
    height: 180px;
    overflow: hidden;
    background: #ffffff;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.category-card h3 {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    color: #fff;
    padding: 15px 15px 5px 15px;
    margin: 0;
    font-size: 1.2rem;
}

.product-count {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    display: block;
    padding: 0 15px 15px 15px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Products Grid */
.featured-products,
.category-page {
    padding: 50px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.related-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.product-card-link {
    display: block;
    flex: 1;
}

.product-image {
    height: 220px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-image {
    color: #999;
    font-size: 0.9rem;
}

.no-image.large {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 1.2rem;
}

.product-info {
    background: #4a6fa5;
    padding: 15px;
    text-align: center;
    border-top: none;
}

.product-info h3 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

/* Add to Cart Button */
.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #e94560;
}

.add-to-cart-btn.large {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    margin-top: 20px;
    width: auto;
    display: inline-flex;
}

.add-to-cart-btn svg {
    stroke: currentColor;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.pagination a:hover {
    background: #e94560;
    color: #fff;
}

.pagination a.active {
    background: #1a1a2e;
    color: #fff;
}

.pagination .dots {
    background: transparent;
    box-shadow: none;
}

.pagination .prev,
.pagination .next {
    background: #1a1a2e;
    color: #fff;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #e94560;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #e94560;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Category Page */
.category-page h1 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.results-count {
    color: #666;
    margin-bottom: 30px;
}

.no-products {
    text-align: center;
    padding: 50px;
    color: #666;
}

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 50px;
}

.product-gallery .main-image {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.product-gallery .main-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    padding: 5px;
    background: #fff;
    transition: border-color 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #e94560;
}

.product-info-detail h1 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.item-code {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}


/* Capsule Add to Cart Button (Product Page) */

/* Refined Capsule Button to match image */
.price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 0; /* Removed the grey box padding */
    background: transparent; /* Removed the grey background */
}

.price-box .price {
    color: #1a1a2e; /* Darker price text like the image */
    font-size: 2.2rem;
    font-weight: 400;
}

.add-to-cart-btn-capsule {
    background: #4856af; /* The deeper blue from the image */
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 100px; /* Force perfect capsule shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: none;
    height: 46px; /* Specific height for that "tic-tac" look */
}

.add-to-cart-btn-capsule:hover {
    background: #394491;
    transform: none;
}

.add-to-cart-btn-capsule svg {
    width: 20px;
    height: 20px;
    fill: #fff; /* Solid white fill */
    stroke: none; /* No outline */
}



.price-box .price {
    color: #e94560;
    font-size: 2rem;
}

.description {
    margin: 25px 0;
}

.description h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.description p {
    color: #555;
    line-height: 1.8;
}

.product-meta {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-meta p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.product-meta a {
    color: #e94560;
}

.btn-inquiry {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.3s;
    margin-top: 20px;
}

.btn-inquiry:hover {
    background: #d13350;
}

/* Related Products */
.related-products {
    margin-top: 30px;
}

/* Footer */
.main-footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.main-footer p {
    margin: 5px 0;
}

/* ===================== */
/* Cart Page Styles */
/* ===================== */

.cart-page {
    padding: 50px 0;
    min-height: 60vh;
}

.cart-page h1 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 30px;
}

.cart-empty {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.cart-empty svg {
    stroke: #ccc;
    margin-bottom: 20px;
}

.cart-empty h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.cart-empty p {
    color: #666;
    margin-bottom: 25px;
}

.btn-continue {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-continue:hover {
    background: #d13350;
}

/* Cart Items */
.cart-items {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 50px;
    gap: 15px;
    padding: 15px 20px;
    background: #1a1a2e;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 50px;
    gap: 15px;
    padding: 20px;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-product img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 5px;
    background: #f5f5f5;
}

.no-image-small {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
    font-size: 0.75rem;
    border-radius: 5px;
}

.cart-item-details h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.cart-item-details .item-code {
    font-size: 0.8rem;
    color: #888;
}

.cart-item-price {
    font-weight: 500;
    color: #333;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: #e94560;
    color: #fff;
    border-color: #e94560;
}

.cart-item-quantity input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.cart-item-total {
    font-weight: 700;
    color: #e94560;
    font-size: 1.1rem;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.cart-item-remove:hover {
    opacity: 1;
}

.cart-item-remove svg {
    stroke: #e94560;
}

/* Cart Summary */
.cart-summary {
    margin-top: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    max-width: 400px;
    margin-left: auto;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.subtotal-amount {
    font-weight: 700;
    color: #e94560;
    font-size: 1.5rem;
}

.shipping-note {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 15px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 15px;
}

.btn-checkout:hover {
    background: #d13350;
}

.btn-continue-shopping {
    display: block;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.btn-continue-shopping:hover {
    color: #e94560;
}

/* ===================== */
/* Checkout Result Pages */
/* ===================== */

.checkout-result {
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.result-box {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.success-icon svg {
    stroke: #28a745;
    margin-bottom: 20px;
}

.cancel-icon svg {
    stroke: #e94560;
    margin-bottom: 20px;
}

.result-box h1 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.result-box p {
    color: #666;
    margin-bottom: 10px;
}

.result-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #d13350;
}

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: #333;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: #e94560;
    color: #e94560;
}

/* ===================== */
/* Toast Notification */
/* ===================== */

.vd-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a2e;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.vd-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.vd-toast svg {
    stroke: #28a745;
    flex-shrink: 0;
}

/* ===================== */
/* Responsive */
/* ===================== */

@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .cart-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cart-item-product {
        margin-bottom: 10px;
    }
    
    .cart-item-price,
    .cart-item-quantity,
    .cart-item-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-item-price::before { content: 'Price: '; color: #888; }
    .cart-item-quantity::before { content: 'Qty: '; color: #888; margin-right: auto; }
    .cart-item-total::before { content: 'Total: '; color: #888; }
    
    .cart-item-remove {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .cart-item {
        position: relative;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .categories-grid h2,
    .featured-products h2 {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info h3 {
    color: #fff;
        font-size: 0.85rem;
        height: auto;
    }
    
    .price {
        font-size: 1.1rem;
    }
    
    .cart-summary {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid .grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item-product img,
    .no-image-small {
        width: 60px;
        height: 60px;
    }
}

/* ===================== */
/* Search Styles */
/* ===================== */

.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.search-form:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.search-input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-btn {
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.search-btn:hover {
    color: #e94560;
}

.search-page {
    padding: 50px 0;
    min-height: 60vh;
}

.search-page h1 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.search-message {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.search-suggestion {
    color: #888;
}

.search-suggestion a {
    color: #e94560;
}

@media (max-width: 992px) {
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin: 15px 0 0 0;
    }
}

@media (max-width: 768px) {
    .search-form {
        border-radius: 20px;
    }
    
    .search-input {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

/* Product Education Tab */
.education-tab {
    background: #e94560;
    text-align: center;
    padding: 0;
}

.education-tab a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 25px;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.education-tab a:hover {
    background: #d63850;
}

/* Education Page Styles */
.education-hero {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.education-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.education-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.video-card .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-card .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card .video-info {
    padding: 20px;
}

.video-card h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.video-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}
