/*

	Author : hamzahalbi@gmail.com ;
	date   : 19/01/2026 ;
*/

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden; /* This hides the horizontal scrollbar */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif; 
}

 #imgLOGO{
        width:170px;
    }
.quantity{
    background: #00c6a5;
    padding: 5px;
    margin: 0 5px 0 0;
    border-radius: 10px;
    color: #fff;
    box-shadow: 1px 1px 3px #5a5a5a;
    font-size: 16px;
}
/* sliding sentence behind products */
.scrolling-offer{
    width: 100%;
    overflow: hidden;
    background: #40764e;
    margin: 20px 0 40px 0;
}

.scrolling-text{
color: #fff;
    font-weight: 600;
    font-size: 34px;
    white-space: nowrap;
    display: inline-block;
    padding: 10px 0;
    animation: scrollText 18s linear infinite;
}

/* contact dropdown menu */
.contact-menu{
    position: relative;
}

/* hidden box */
.contact-dropdown{
    position: absolute;
    top: 30px;
    right: 0;
    background: #111;
    padding: 10px 0;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 999;
}

/* links inside */
.contact-dropdown a{
    display: block;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.contact-dropdown a:hover{
    background:#d37a25;
}

/* show on hover */
.contact-menu:hover .contact-dropdown{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


@keyframes scrollText{
    from{ transform: translateX(100%); }
    to{ transform: translateX(-100%); }
}

.product-image {
  overflow: hidden;          /* prevents zoom from going outside */
}

.product-image img {
  width: 100%;
  transition: transform 0.3s ease;   /* smooth zoom */
}

.product-image:hover img {
  transform: scale(1.08);   /* zoom level (change if you want) */
}



@media (max-width: 768px) {
    .main-header {
        flex-direction: column; /* Stacks everything vertically */
        padding: 15px 10px;
        position: relative; /* Keeps it above the hero text */
        background: rgba(0, 0, 0, 0.5); /* Adds a dark tint for readability */
    }

    .header-left-group {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .logo-container {
        justify-content: center;
        margin-bottom: 5px;
    }

    /* Smaller Logo for Mobile */
    .logo {
        font-size: 1.8rem;
    }

    /* Links Fix: Proper spacing and centering */
    .primary-nav ul, 
    .secondary-nav ul {
        display: flex;
        justify-content: center;
        gap: 15px;
        padding: 0;
    }

    .primary-nav ul li a, 
    .secondary-nav ul li a {
        font-size: 0.75rem; /* Smaller text to fit on one line */
        letter-spacing: 1px;
    }

    /* Hide secondary nav or move it down to prevent clutter */
    .secondary-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 10px;
        width: 100%;
    }
}
/* The main header container */
.main-header {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 20px 50px;
    z-index: 10;
    background: #0000008c;
}

/* This forces the Logo and Nav to stay in one horizontal line */
.header-left-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Prevents the menu from dropping below the logo */
    gap: 50px; /* Space between logo and the first link */
}

/* Logo and Flag alignment */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    color: white;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px; /* Makes TPK look like a solid brand logo */
}

/* The Navigation List */
.primary-nav ul {
    display: flex; /* Ensures links are horizontal */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px; /* Space between each link */
}

.primary-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap; /* Prevents text from breaking into two lines */
    text-shadow: 1px 2px 2px #000000ab;
}

/* Fix for the two links on the right */
.secondary-nav ul {
    display: flex;         /* Horizontal layout */
    list-style: none;      /* Removes the bullet points */
    margin: 0;
    padding: 0;
    gap: 20px;             /* Space between the two links */
}

.secondary-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;   /* Keeps text on one line */
    text-shadow: 1px 2px 2px #000000ab;
}

/* Hover effect for better UI */
.secondary-nav ul li a:hover {
    opacity: 0.8;
}
.hero-section {
    height: 100vh;
    width: 100%;
    
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, /* Top: Almost clear white */ rgb(10 10 10 / 80%) 100% /* Bottom: Deep dark blue */), url(../img/back1.png);

    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    
    display: flex;
    align-items: center;
    padding-left: 10%;
    color: white; 
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 4px 5px 3px #000000ab;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background-color: white;
    color: #000;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid white;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #000000;
    border: 2px solid #000;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid white;
    transition: 0.3s;
}

.btn-secondary:hover {
    background-color: white;
    color: #000;
}

.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #333;
}

/* Legal Warning Box - Crucial for tobacco sites */
.footer-legal {
    max-width: 800px;
    margin: 0 auto 20px auto;
    padding: 15px;
    border: 1px solid #ff0000; /* Red border to draw attention to the warning */
    background-color: rgba(255, 0, 0, 0.05);
}

.footer-legal p {
    font-size: 0.85rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Navigation and Copyright */
.footer-links {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7; /* Makes it look more subtle than the main text */
}

.footer-links p {
    margin-bottom: 10px;
}

/* Hover effect for footer links if you add them later */
.footer-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.featured-products {
    padding: 80px 10%;
    background-color: #f5f7f9; /* Light grey background like the image */
    text-align: center;
}

.featured-products h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

/* Creating the 5-column grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 equal columns */
    gap: 20px;
}

.product-card {
    background: white;
    padding-bottom: 20px;
    text-align: left;
    transition: transform 0.3s ease;
}

.product-image {
    width: 100%;            /* Ensure the container takes full width of the card */
    height: 250px;          /* Set a fixed height for consistency across the grid */
    display: flex;          /* Enables Flexbox */
    justify-content: center; /* Centers image horizontally */
    align-items: center;    /* Centers image vertically */
    overflow: hidden;       /* Prevents images from leaking out of the div */
    position: relative;     /* Keeps the 'Sale!' badge positioned correctly */
    background-color: #fff; /* Optional: adds a clean background for transparent PNGs */
}

.product-image img {
    max-width: 90%;         /* Ensures the image doesn't touch the edges */
    max-height: 90%;        /* Maintains aspect ratio without distortion */
    object-fit: contain;    /* Ensures the whole product is visible within the space */
}

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #27a514;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Product Text Info */
.product-info {
    padding: 0 10px;
}

.category {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.product-info h3 {
    font-size: 1rem;
    margin: 5px 0;
    color: #333;
}

.price {
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
    margin-top: 21px;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-weight: normal;
    margin-right: 5px;
}

/* WhatsApp Button for each product */
.wa-order-btn {
    display: block;
    background-color: #d37a25;
    color: white;
    text-align: center;
    padding: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: 0.3s;
}

.wa-order-btn:hover {
    background-color: #a15914;
}

/* Responsive: 2 columns on tablets, 1 on mobile */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* Features Section Styling */
.features-section {
    display: flex;
    justify-content: space-around;
    padding: 80px 10%;
    background-color: #f7f7f7;
    text-align: center;
}

.feature-item {
    flex: 1;
    padding: 20px;
}

.feature-item img {
    width: 50px; /* Adjust based on your icons */
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.feature-item p {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
}

/* Detailed Footer Styling */
.main-footer {
    padding: 60px 20%;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #333;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: #000;
}

.store-badge {
    width: 150px;
    margin-top: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* 1. Global fix for the right-side gap */
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    /* 2. Header and Navigation */
    .main-header {
        flex-direction: column;
        padding: 15px 10px;
        position: relative;
        background: rgba(0, 0, 0, 0.8); /* Darker for better text contrast */
    }

    .header-left-group {
        width: 100%;
        gap: 10px;
    }

    .primary-nav ul, .secondary-nav ul {
        flex-wrap: wrap; /* Allows links to wrap instead of pushing right */
        justify-content: center;
        gap: 10px;
    }

    /* 3. Hero Section - The main culprit */
    .hero-section {
        padding-left: 20px; /* Reset from 10% */
        padding-right: 20px;
        text-align: center;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.2rem; /* Significantly smaller to fit screen width */
        width: 100%;
        word-wrap: break-word;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column; /* Stacks buttons so they don't overlap */
        align-items: center;
    }

    /* 4. Features and Footer (Fixes image 3) */
    .features-section {
        flex-direction: column;
        padding: 40px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Stacks footer columns vertically */
        gap: 30px;
        text-align: center;
    }

    .footer-column ul li a {
        justify-content: center; /* Centers the Whatsapp/Phone icons */
    }

    /* 5. Phone Info text */
    .info_phone {
        font-size: 20px !important;
        padding: 0 10px;
    }
}