/* Products Page Specific Styles */

/* Fix horizontal scrollbar */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-width: 100vw !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

.modern-navbar {
    max-width: 100vw !important;
    overflow: visible !important;
}

.modern-navbar .container {
    max-width: 100% !important;
    overflow: visible !important;
}

.modern-navbar .nav-wrapper {
    max-width: 100% !important;
    overflow: visible !important;
}

.has-dropdown {
    position: relative;
    overflow: visible !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10000 !important;
    display: none;
    min-width: 220px;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 5px;
    overflow: visible !important;
}

.has-dropdown:hover .dropdown-menu {
    display: block !important;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background: rgba(211, 65, 63, 0.1);
    color: #D3413F;
    padding-left: 25px;
}

.page-header {
    background: linear-gradient(135deg, rgba(31,31,31,0.9), rgba(211,65,63,0.8)),
                url('https://images.unsplash.com/photo-1600607687644-c7171b42498b?w=1920&h=600&fit=crop') center/cover;
    padding: 150px 0 100px;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    max-width: 100vw;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 20px;
    position: relative;
    z-index: 2;
}

.product-section {
    padding: 80px 0;
    overflow: visible;
}

.alt-bg {
    background: var(--light-color);
}

.container {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

section {
    max-width: 100vw !important;
    overflow: visible !important;
}

.section-header {
    max-width: 100% !important;
    overflow: hidden !important;
}

.section-description {
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* View Catalogue Button - Ultra Stylish */
.view-all-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 16px 45px;
    background: linear-gradient(135deg, #D3413F 0%, #e74c3c 50%, #ff6b6b 100%);
    background-size: 200% 200%;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(211, 65, 63, 0.4),
                inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 6px 25px rgba(211, 65, 63, 0.4),
                    inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(211, 65, 63, 0.6),
                    inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    }
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: 0;
}

.view-all-btn::after {
    content: '→';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.view-all-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background-position: 100% 50%;
    box-shadow: 0 12px 40px rgba(211, 65, 63, 0.7),
                0 0 30px rgba(211, 65, 63, 0.3),
                inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1.5px;
    border-color: rgba(255, 255, 255, 0.4);
    animation: none;
}

.view-all-btn:hover::before {
    left: 100%;
    top: 100%;
}

.view-all-btn:hover::after {
    right: 20px;
    transform: translateY(-50%) translateX(5px);
}

.view-all-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.product-showcase {
    margin-top: 50px;
    max-width: 100%;
    overflow: hidden;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

/* Tablet View - 2 columns */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Mobile View - 2 columns for better density */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #f8f8f8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s ease;
    max-width: 100%;
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Prevent horizontal scrolling */
* {
    max-width: 100%;
}

.container {
    max-width: 100%;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Responsive - Tablet (992px and below) */
@media (max-width: 992px) {
    .page-header {
        padding: 120px 0 70px;
        margin-top: 70px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .product-section {
        padding: 60px 0;
    }

    .container {
        padding: 0 30px;
    }
}

/* Responsive - Mobile (768px and below) */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
        margin-top: 60px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 15px;
        padding: 0 15px;
    }

    .product-section {
        padding: 50px 0;
    }

    .product-card {
        max-width: 100%;
    }

    .product-image {
        height: 250px;
    }

    .product-info {
        padding: 20px;
    }

    .product-info h3 {
        font-size: 20px;
    }

    .product-info p {
        font-size: 13px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 14px;
        padding: 0 15px;
    }

    .container {
        padding: 0 20px;
    }
}

/* Responsive - Small Mobile (576px and below) */
@media (max-width: 576px) {
    .page-header {
        padding: 90px 0 50px;
        margin-top: 60px;
    }

    .page-header h1 {
        font-size: 26px;
        padding: 0 15px;
    }

    .page-header p {
        font-size: 14px;
        padding: 0 15px;
    }

    .product-section {
        padding: 40px 0;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 15px;
    }

    .product-info h3 {
        font-size: 18px;
    }

    .product-info p {
        font-size: 12px;
    }

    .product-badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-description {
        font-size: 13px;
    }

    .container {
        padding: 0 15px;
    }

    /* Touch-friendly buttons */
    .view-all-btn {
        padding: 18px 40px;
        font-size: 16px;
        min-height: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .whatsapp-btn {
        padding: 16px 30px !important;
        font-size: 15px !important;
        min-height: 48px !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Responsive - Extra Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 22px;
    }

    .section-title {
        font-size: 20px;
    }

    /* Compact Product Cards for 2-column layout */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-image {
        height: 160px;
    }

    .product-image img {
        padding: 10px;
    }

    .product-info {
        padding: 12px 10px;
    }

    .product-info h3 {
        font-size: 13px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .product-info p {
        font-size: 10px;
        line-height: 1.4;
        margin: 0;
    }

    .product-badge {
        font-size: 8px;
        padding: 4px 8px;
        border-radius: 4px;
    }

    .badge-gold {
        font-size: 8px;
        padding: 4px 8px;
    }

    .section-description {
        font-size: 12px;
        padding: 0 5px;
    }

    .view-all-btn {
        padding: 12px 25px;
        font-size: 13px;
        border-radius: 25px;
    }

    .view-all-btn::after {
        font-size: 16px;
        right: 15px;
    }

    /* CTA Section - Mobile Optimization */
    .cta-section {
        padding: 50px 20px !important;
    }

    .cta-section::before {
        background-size: 25px 25px;
        animation-duration: 15s;
    }

    .cta-section h2 {
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
    }

    .cta-section p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 25px !important;
        opacity: 0.95;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 !important;
        max-width: 100%;
        margin: 0 auto;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 25px !important;
        font-size: 13px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        border-radius: 50px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative;
    }

    .cta-btn-primary .btn-icon,
    .cta-btn-secondary .btn-icon {
        font-size: 18px;
    }

    .cta-btn-primary {
        background: white !important;
        color: #D3413F !important;
        border: none !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    }

    .cta-btn-primary:active {
        transform: scale(0.96) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }

    .cta-btn-secondary {
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
        border: 2px solid rgba(255, 255, 255, 0.6) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    }

    .cta-btn-secondary:active {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: scale(0.96) !important;
    }
}

/* CTA Section Styling - Modern Design */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #D3413F 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    opacity: 0.3;
    z-index: 1;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 45px;
    opacity: 0.95;
    color: white;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* Primary CTA Button - White */
.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 45px;
    background: white;
    color: #D3413F;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.cta-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(211, 65, 63, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.cta-btn-primary:hover::before {
    width: 500px;
    height: 500px;
}

.cta-btn-primary .btn-icon,
.cta-btn-primary .btn-text {
    position: relative;
    z-index: 1;
}

.cta-btn-primary .btn-icon {
    font-size: 22px;
}

.cta-btn-primary:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: #D3413F;
}

.cta-btn-primary:active {
    transform: translateY(-4px) scale(1.04);
}

/* Secondary CTA Button - Outline */
.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn-secondary .btn-icon {
    font-size: 22px;
}

.cta-btn-secondary:hover {
    background: white;
    color: #D3413F;
    border-color: white;
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.4);
}

.cta-btn-secondary:active {
    transform: translateY(-4px) scale(1.04);
}

