/* ===================================
GOOGLE FONTS
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ===================================
ROOT VARIABLES
=================================== */

:root {
    --primary: #ff4d00;
    --secondary: #ff7b00;
    --dark: #101010;
    --light: #ffffff;
    --gray: #6b7280;
    --bg: #f8fafc;
    --border: #ececec;

    --shadow-sm: 0 5px 20px rgba(0,0,0,.08);
    --shadow-md: 0 15px 35px rgba(0,0,0,.10);
    --shadow-lg: 0 25px 60px rgba(0,0,0,.12);

    --radius: 18px;
    --transition: all .35s ease;
}

/* ===================================
RESET
=================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#fff;
    color:var(--dark);
    overflow-x:hidden;
    line-height:1.7;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    transition:var(--transition);
}

ul{
    list-style:none;
    padding:0;
    margin:0;
}

.section-padding{
    padding:100px 0;
}

.container{
    max-width:1320px;
}

/* ===================================
COMMON TITLE
=================================== */

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:48px;
    font-weight:800;
    color:var(--dark);
}

.section-title span{
    color:var(--primary);
}

.section-title p{
    max-width:650px;
    margin:auto;
    color:var(--gray);
    margin-top:15px;
}

/* ===================================
BUTTONS
=================================== */

.btn-main{
    background:linear-gradient(135deg, var(--primary), var(--secondary));
    color:#fff;
    padding:14px 32px;
    border-radius:50px;
    font-weight:600;
    border:none;
    transition:var(--transition);
    display:inline-block;
}

.btn-main:hover{
    transform:translateY(-4px);
    color:#fff;
    box-shadow:0 15px 30px rgba(255,77,0,.25);
}

.btn-outline-main{
    border:2px solid var(--primary);
    color:var(--primary);
    padding:13px 30px;
    border-radius:50px;
    font-weight:600;
    background:transparent;
}

.btn-outline-main:hover{
    background:var(--primary);
    color:#fff;
}

.btn-cart{
    width:100%;
    background:linear-gradient(135deg, var(--primary), var(--secondary));
    color:#fff;
    border-radius:50px;
    padding:12px;
    font-weight:600;
    border:none;
    cursor:pointer;
    transition:var(--transition);
}

.btn-cart:hover{
    color:#fff;
    transform:translateY(-3px);
    box-shadow:0 15px 25px rgba(255,77,0,.25);
}

/* Override Bootstrap btn-success with primary color */
.btn-success {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-success:hover {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

/* ===================================
HEADER
=================================== */

.header{
    background:#fff;
    box-shadow:var(--shadow-sm);
    z-index:999;
    transition:var(--transition);
}

.navbar{
    padding:18px 0;
}

.logo{
    height:60px;
}

.navbar-nav{
    gap:15px;
}

.nav-link{
    color:var(--dark);
    font-weight:600;
    font-size:15px;
    position:relative;
}

.nav-link:hover{
    color:var(--primary);
}

.nav-link::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-4px;
    width:0;
    height:2px;
    background:var(--primary);
    transition:var(--transition);
}

.nav-link:hover::after{
    width:100%;
}

.header-icons{
    display:flex;
    align-items:center;
    gap:20px;
}

.header-icons a{
    color:var(--dark);
    font-size:20px;
    position:relative;
    cursor:pointer;
}

.header-icons a:hover{
    color:var(--primary);
}

.cart-count{
    width:20px;
    height:20px;
    background:var(--primary);
    color:#fff;
    border-radius:50%;
    font-size:11px;
    font-weight:700;
    position:absolute;
    top:-8px;
    right:-10px;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* ===================================
HERO
=================================== */

.hero{
    padding-top:60px;
    padding-bottom:0px;
    background:linear-gradient(180deg, #fff, #f6f8fb);
}

/* ===================================
PAGE BANNER
=================================== */

.page-banner{
    padding:120px 0 60px;
    background:linear-gradient(135deg, #111827, #0f5132);
    color:#fff;
    text-align:center;
    position:relative;
    overflow:hidden;
}

.page-banner h1{
    font-size:48px;
    font-weight:800;
    margin-bottom:20px;
    color:#fff;
}

.page-banner .breadcrumb{
    background:rgba(255,255,255,.1);
    border-radius:50px;
    padding:8px 20px;
    display:inline-block;
}

.page-banner .breadcrumb-item{
    color:#fff;
}

.page-banner .breadcrumb-item a{
    color:#fff;
}

.page-banner .breadcrumb-item a:hover{
    color:var(--primary);
}

/* ===================================
FEATURE STRIP
=================================== */

.feature-strip{
    padding:35px 0;
    background:#fff;
}

.feature-box{
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    padding:22px;
    display:flex;
    align-items:center;
    gap:18px;
    height:100%;
    transition:var(--transition);
}

.feature-box:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-md);
}

.feature-box i{
    width:65px;
    height:65px;
    border-radius:50%;
    background:linear-gradient(135deg, var(--primary), var(--secondary));
    color:#fff;
    font-size:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.feature-box h5{
    font-size:18px;
    font-weight:700;
    margin-bottom:4px;
}

.feature-box p{
    margin:0;
    color:var(--gray);
    font-size:14px;
}

/* ===================================
CATEGORY SECTION
=================================== */

.categories{
    background:#fafafa;
}

.category-card{
    background:#fff;
    border-radius:20px;
    padding:0px 0px;
    text-align:center;
    border:1px solid #ededed;
    transition:all .35s ease;
    overflow:hidden;
    position:relative;
    height:100%;
}

.category-card::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:5px;
    background:linear-gradient(90deg, var(--primary), var(--secondary));
    transform:scaleX(0);
    transition:.35s;
}

.category-card:hover::before{
    transform:scaleX(1);
}

.category-card:hover{
    transform:translateY(-12px);
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

.category-card img{
    object-fit:contain;
    margin:auto;
    transition:.4s;
}

.category-card:hover img{
    transform:scale(1.12) rotate(-0deg);
}

.category-card h5{
    margin-top:20px;
    font-weight:700;
    font-size:18px;
}

.category-card a{
    display:inline-block;
    margin-top:12px;
    color:var(--primary);
    font-weight:600;
}

.category-card a:hover{
    letter-spacing:1px;
}

/* ===================================
PROMO SECTION
=================================== */

.promo-banner{
    padding:0px 0;
    background:linear-gradient(135deg, #fff7f2, #ffffff);
}

.promo-banner img{
    max-height:auto;
    animation:floatImage 4s infinite;
}

/* ===================================
PRODUCT SECTION
=================================== */

.products{
    background:#fafafa;
}

.product-card{
    background:#fff;
    border-radius:20px;
    padding:25px;
    border:1px solid #ececec;
    transition:.35s;
    position:relative;
    overflow:hidden;
    text-align:center;
    height:100%;
}

.product-card::after{
    content:'';
    position:absolute;
    width:100%;
    height:6px;
    left:0;
    bottom:0;
    background:linear-gradient(90deg, var(--primary), var(--secondary));
    transform:scaleX(0);
    transition:.35s;
}

.product-card:hover::after{
    transform:scaleX(1);
}

.product-card:hover{
    transform:translateY(-12px);
    box-shadow:0 25px 50px rgba(0,0,0,.12);
}

.product-card img{
    width:180px;
    height:180px;
    object-fit:contain;
    margin:auto;
    transition:.4s;
}

.product-card:hover img{
    transform:scale(1.1) rotate(-8deg);
}

.product-card h5{
    margin-top:20px;
    font-size:19px;
    font-weight:700;
}

.rating{
    color:#FFC107;
    margin:12px 0;
    font-size:15px;
}

.product-card h4{
    color:var(--primary);
    font-weight:800;
    margin-bottom:18px;
}

/* ===================================
STACKS
=================================== */

.stacks{
    background:#fff;
}

.stack-card{
    background:#fff;
    border-radius:24px;
    padding:35px;
    text-align:center;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
    transition:.4s;
    position:relative;
    overflow:hidden;
    height:100%;
}

.stack-card:hover{
    transform:translateY(-12px);
    box-shadow:0 30px 60px rgba(0,0,0,.14);
}

.stack-card img{
    height:260px;
    object-fit:contain;
    margin:auto;
    transition:.4s;
}

.stack-card:hover img{
    transform:scale(1.08);
}

.stack-card .badge{
    position:absolute;
    top:20px;
    left:20px;
    font-size:13px;
    padding:10px 14px;
    border-radius:30px;
}

.stack-card h3{
    margin-top:25px;
    font-size:28px;
    font-weight:700;
}

.stack-card p{
    color:var(--gray);
    margin:18px 0;
}

.stack-card h4{
    color:var(--primary);
    font-weight:800;
    margin-bottom:25px;
}

.featured{
    border:3px solid var(--primary);
    transform:scale(1.03);
}

.featured:hover{
    transform:scale(1.05);
}

/* ===================================
WHY US
=================================== */

.why-us{
    background:#fafafa;
}

.why-us img{
    max-height:620px;
}

.why-us p{
    color:var(--gray);
    margin-top:25px;
}

.why-box{
    background:#fff;
    border-radius:18px;
    padding:25px;
    text-align:center;
    transition:.35s;
    border:1px solid #ececec;
}

.why-box:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.10);
}

.why-box i{
    width:70px;
    height:70px;
    margin:auto;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg, var(--primary), var(--secondary));
    color:#fff;
    font-size:26px;
    margin-bottom:18px;
}

.why-box h5{
    font-weight:700;
    margin-bottom:0;
}

/*=====================================
NEWSLETTER
=====================================*/

.newsletter{
    padding:90px 0;
    background:linear-gradient(135deg, var(--primary), var(--secondary));
    color:#fff;
}

.newsletter h2{
    font-size:48px;
    font-weight:800;
    margin-bottom:15px;
}

.newsletter h2 span{
    color:#fff;
}

.newsletter p{
    opacity:.9;
    font-size:17px;
}

.newsletter-form{
    display:flex;
    gap:15px;
}

.newsletter-form input{
    height:60px;
    border:none;
    border-radius:50px;
    padding-left:25px;
    box-shadow:none;
    flex:1;
}

.newsletter-form input:focus{
    box-shadow:none;
    outline:none;
}

.newsletter-form button{
    min-width:180px;
    border-radius:50px;
    background:#fff;
    color:var(--primary);
    font-weight:700;
    border:none;
    cursor:pointer;
    transition:var(--transition);
}

.newsletter-form button:hover{
    background:#101010;
    color:#fff;
}

/*=====================================
FOOTER
=====================================*/

footer{
    background:#111;
    color:#ddd;
    padding:90px 0 20px;
}

.footer-logo{
    width:170px;
    margin-bottom:20px;
}

footer p{
    color:#bbb;
    line-height:28px;
}

footer h5{
    color:#fff;
    margin-bottom:25px;
    font-weight:700;
}

footer ul li{
    margin-bottom:12px;
}

footer ul li a{
    color:#bdbdbd;
    transition:.3s;
}

footer ul li a:hover{
    color:var(--primary);
    padding-left:6px;
}

.social-icons{
    display:flex;
    gap:12px;
    margin-top:25px;
}

.social-icons a{
    width:45px;
    height:45px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#222;
    color:#fff;
    transition:.35s;
}

.social-icons a:hover{
    background:var(--primary);
    transform:translateY(-5px);
}

footer hr{
    border-color:#2c2c2c;
    margin:50px 0 25px;
}

.copyright{
    color:#9e9e9e;
}

/*=====================================
DROPDOWN
=====================================*/

.dropdown-menu{
    border:none;
    border-radius:18px;
    box-shadow:0 20px 50px rgba(0,0,0,.15);
    padding:15px;
}

.dropdown-item{
    padding:10px 18px;
    border-radius:12px;
    transition:.3s;
}

.dropdown-item:hover{
    background:var(--primary);
    color:#fff;
}

/* ===================================
INNER PAGE STYLES
=================================== */

/* Cart Page */
.cart-section {
    padding: 60px 0;
    margin-top: 100px;
}

.cart-table {
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cart-summary {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 120px;
}

.cart-summary h5 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row.total {
    border-bottom: none;
    margin-top: 15px;
    padding-top: 15px;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

/* Checkout Page */
.checkout-section {
    padding: 60px 0;
    margin-top: 100px;
}

.form-section {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.form-section h5 {
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.form-section .form-control,
.form-section .form-select {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    height: auto;
    transition: var(--transition);
}

.form-section .form-control:focus,
.form-section .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
}

.order-summary-checkout {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 120px;
}

/* Product Page */
.product-detail-section {
    padding: 60px 0;
    margin-top: 100px;
}

.product-image-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.product-image-container img {
    max-width: 100%;
    height: auto;
}

.product-details {
    padding: 30px;
}

.product-details h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark);
}

.product-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-description {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.quantity-selector input {
    width: 80px;
    height: 45px;
    border: 2px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.quantity-selector button {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border);
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-selector button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Login/Register Pages */
.auth-section {
    padding: 120px 0 60px;
    margin-top: 60px;
}

.auth-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.auth-card h3 {
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark);
    text-align: center;
}

.auth-card .form-control {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    height: auto;
    transition: var(--transition);
    margin-bottom: 20px;
}

.auth-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
}

.auth-card .btn-success,
.auth-card .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border: none !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    height: 48px !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: var(--transition);
}

.auth-card .btn-success:hover,
.auth-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 77, 0, 0.2) !important;
}

/* Dashboard */
.dashboard-section {
    padding: 60px 0;
    margin-top: 100px;
}

.dashboard-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    border: 1px solid var(--border);
}

.dashboard-card h5 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.order-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.order-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.order-status.completed {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

/* Contact Page */
.contact-section {
    padding: 60px 0;
    margin-top: 100px;
}

.contact-form {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact-info {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.contact-info i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-info h5 {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.contact-info p {
    color: var(--gray);
    margin: 0;
}

/*=====================================
ANIMATIONS
=====================================*/

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp .8s ease forwards;
}

@keyframes zoom {
    from {
        transform: scale(.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom {
    animation: zoom .8s ease;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/*=====================================
CUSTOM SCROLLBAR
=====================================*/

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 30px;
}

::-webkit-scrollbar-track {
    background: #efefef;
}

/*=====================================
BACK TO TOP
=====================================*/

.back-to-top {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-6px);
}

/*=====================================
UTILITY
=====================================*/

.text-primary {
    color: var(--primary) !important;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.rounded-xl {
    border-radius: 25px;
}

.shadow-hover {
    transition: .35s;
}

.shadow-hover:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, .15);
}

/*=====================================
RESPONSIVE
=====================================*/

@media(max-width:1200px) {
    .section-title h2 {
        font-size: 42px;
    }
    .stack-card img {
        height: 220px;
    }
}

@media(max-width:992px) {
    .navbar-nav {
        margin-top: 20px;
    }
    .header-icons {
        margin-top: 20px;
    }
    .hero {
        text-align: center;
        padding-top: 150px;
    }
    .section-padding {
        padding: 70px 0;
    }
    .section-title h2 {
        font-size: 36px;
    }
    .promo-banner {
        text-align: center;
    }
    .promo-banner img {
        margin-top: 0px;
    }
    .newsletter {
        text-align: center;
    }
    .newsletter-form {
        margin-top: 30px;
        justify-content: center;
    }
    .why-us {
        text-align: center;
    }
    .why-us img {
        margin-bottom: 40px;
    }
    .auth-card {
        padding: 30px;
    }
    .cart-summary {
        position: relative;
        top: auto;
    }
}

@media(max-width:768px) {
    .section-title h2 {
        font-size: 30px;
    }
    .newsletter h2 {
        font-size: 34px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    .feature-box {
        margin-bottom: 20px;
    }
    footer {
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .product-details {
        padding: 20px 0;
    }
    .page-banner h1 {
        font-size: 36px;
    }
}

@media(max-width:576px) {
    .logo {
        height: 45px;
    }
    .hero {
        padding-top: 130px;
    }
    .btn-main,
    .btn-outline-main,
    .btn-cart {
        width: 100%;
    }
    .category-card {
        padding: 20px;
    }
    .category-card img {
        width: 90px;
        height: 90px;
    }
    .product-card {
        padding: 18px;
    }
    .product-card img {
        width: 130px;
        height: 130px;
    }
    .stack-card {
        padding: 25px;
    }
    .stack-card img {
        height: 170px;
    }
    .newsletter {
        padding: 70px 0;
    }
    .newsletter h2 {
        font-size: 28px;
    }
    .auth-card {
        padding: 20px;
    }
    .page-banner h1 {
        font-size: 28px;
    }
    .cart-table {
        font-size: 14px;
    }
}

/*=====================================
END
=====================================*/
