/* =========================================================
   COMMON CSS
   Partner Jeans & Pants
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #172b4d;
    overflow-x: hidden;
}


/* =========================================================
   HEADER
========================================================= */

header {
    min-height: 75px;
    width: 100%;
    background: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 45px;
    box-sizing: border-box;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    position: relative;
    z-index: 100;
}


/* =========================================================
   LOGO
========================================================= */

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

.logo img {
    width: 120px;
    height: auto;
    display: block;
}


/* =========================================================
   NAVIGATION
========================================================= */

nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

nav a {
    color: #172b4d;
    text-decoration: none;

    font-size: 12px;
    font-weight: 500;

    padding: 8px 0;

    white-space: nowrap;

    transition: 0.3s;
}

nav a:hover {
    color: #1683ff;
    border-bottom: 3px solid #1683ff;
}


/* =========================================================
   HEADER RIGHT
========================================================= */

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* =========================================================
   SEARCH
========================================================= */

.search {
    width: 200px;
    height: 40px;

    display: flex;
    align-items: center;

    padding: 0 12px;

    background: #fafafa;

    border: 1px solid #ddd;
    border-radius: 25px;

    box-sizing: border-box;
}

.search input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    font-size: 13px;
}

.search span {
    font-size: 15px;
    cursor: pointer;
}


/* =========================================================
   LOGIN / REGISTER
========================================================= */

.login,
.register {
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    color: white;
    background: #1683ff;

    border: 1px solid #1683ff;
    border-radius: 7px;

    text-decoration: none;

    font-size: 13px;
    font-weight: bold;

    white-space: nowrap;

    transition: 0.3s;
}

.login:hover,
.register:hover {
    background: #006fe6;
    border-color: #006fe6;

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(22, 131, 255, 0.25);
}


/* =========================================================
   HEADER RESPONSIVE - 1200px
========================================================= */

@media (max-width: 1200px) {

    header {
        padding: 0 25px;
    }

    nav {
        gap: 15px;
        margin: 0 10px;
    }

    nav a {
        font-size: 12px;
    }

    .search {
        width: 180px;
    }
}


/* =========================================================
   HEADER RESPONSIVE - 1000px
========================================================= */

@media (max-width: 1000px) {

    header {
        flex-wrap: wrap;

        min-height: auto;

        padding-top: 15px;
        padding-bottom: 15px;

        gap: 15px;
    }

    nav {
        order: 3;

        width: 100%;

        justify-content: center;

        flex-wrap: wrap;
    }

    nav a {
        font-size: 10px;
    }

    .header-right {
        margin-left: auto;
    }
}


/* =========================================================
   HEADER RESPONSIVE - 700px
========================================================= */

@media (max-width: 700px) {

    header {
        padding: 15px;

        flex-direction: column;

        align-items: stretch;
    }

    .logo {
        justify-content: center;
    }

    .logo img {
        width: 200px;
    }

    nav {
        gap: 12px;

        width: 100%;

        overflow-x: auto;

        flex-wrap: nowrap;

        justify-content: flex-start;
    }

    nav a {
        font-size: 8px;
    }

    .header-right {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        margin: 0;
    }

    .search {
        width: 100%;
        max-width: 350px;
    }
}


/* =========================================================
   HEADER RESPONSIVE - 450px
========================================================= */

@media (max-width: 450px) {

    .logo img {
        width: 150px;
    }

    nav {
        gap: 9px;
    }

    nav a {
        font-size: 6px;
    }

    .login,
    .register {
        padding: 0 11px;
    }
}


/* =========================================================
   COMMON SECTION TITLE
========================================================= */

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 32px;
    margin: 10px 0;
}

.section-title h2 span {
    color: #1683ff;
}

.section-title p {
    color: #718096;
    font-size: 15px;
    margin-top: 8px;
}

.blue-line {
    width: 40px;
    height: 3px;
    background: #1683ff;
    margin: 10px auto;
}


/* =========================================================
   COMMON PRODUCT GRID
========================================================= */

.products,
.products-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 22px;

    width: 100%;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

.product-card {
    width: 100%;

    background: white;

    border: 1px solid #e4e9ef;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    transition: 0.3s;

    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-image {
    width: 100%;
    height: 280px;

    position: relative;

    overflow: hidden;

    background: #f2f2f2;
}

.product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

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


/* =========================================================
   BADGES
========================================================= */

.badge,
.new-badge,
.sale-badge {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 2;

    color: white;

    padding: 6px 10px;

    border-radius: 5px;

    font-size: 11px;
    font-weight: bold;
}

.badge {
    background: #1683ff;
}

.badge.best {
    background: #e67e22;
}

.badge.hot {
    background: #e74c3c;
}

.new-badge {
    background: #111;
}

.sale-badge {
    background: #c62828;
}


/* =========================================================
   PRODUCT INFO
========================================================= */

.product-info {
    padding: 16px;
}

.product-info h3 {
    margin: 0 0 8px;

    font-size: 17px;

    color: #222;
}

.product-category {
    margin: 0 0 10px;

    color: #888;

    font-size: 13px;
}

.rating {
    margin: 8px 0 12px;

    color: #f59e0b;

    font-size: 14px;
}

.rating span,
.rating small {
    color: #777;

    margin-left: 5px;
}

.price {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 15px;
}

.price b,
.product-price {
    color: #172b4d;

    font-size: 19px;
    font-weight: bold;
}

.price del,
.old-price {
    color: #999;

    font-size: 13px;
}

.old-price {
    text-decoration: line-through;
}

.price span:not(.product-price):not(.sale-price) {
    color: #16a34a;

    font-size: 11px;
    font-weight: bold;
}

.sale-price {
    color: #c62828;

    font-size: 21px;
    font-weight: bold;
}


/* =========================================================
   CART BUTTON
========================================================= */

.product-info button,
.cart-btn {
    width: 100%;

    border: none;

    background: #12365b;

    color: white;

    padding: 11px;

    border-radius: 6px;

    cursor: pointer;

    font-size: 14px;

    transition: 0.3s;
}

.product-info button:hover,
.cart-btn:hover {
    background: #1683ff;
}


/* =========================================================
   LOGOUT
========================================================= */

.user-name {
    color: #172b4d;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;
}

.logout {
    text-decoration: none;

    color: white;

    background: #172b4d;

    padding: 9px 18px;

    border-radius: 6px;

    font-weight: 600;
}

.logout:hover {
    background: #000;
}


/* =========================================================
   PREMIUM FOOTER
========================================================= */

.premium-footer {
    width: 100%;

    margin: 0;
    padding: 0;

    background: rgb(81, 81, 75);

    color: rgb(227, 223, 223);

    box-sizing: border-box;
}

.footer-container {
    width: 100%;

    margin: 0;

    padding: 65px 45px 50px;

    box-sizing: border-box;

    display: grid;

    grid-template-columns:
        1.7fr
        1fr
        1.25fr
        1.15fr
        1.4fr;

    gap: 35px;

    align-items: start;
}

.footer-brand {
    min-width: 0;
}



.footer-logo {
    margin: 0 0 15px;
}

.footer-logo img {
    width: 100px;
    height: auto;
    display: block;
    object-fit: contain;
}

.footer-logo span {
    color: #28a9ff;
}

.footer-description {
    max-width: 330px;

    color: #aaa;

    font-size: 14px;

    line-height: 1.8;

    margin: 0 0 22px;
}

.footer-social {
    display: flex;
    align-items: center;

    gap: 10px;
}

.social-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #222;

    border: 1px solid #333;

    border-radius: 50%;

    color: white;

    text-decoration: none;

    font-size: 15px;

    transition: 0.3s;
}

.social-icon:hover {
    background: #1683ff;

    border-color: #1683ff;

    transform: translateY(-3px);
}

.footer-box {
    min-width: 0;

    display: flex;

    flex-direction: column;
}

.footer-box h3 {
    color: white;

    font-size: 17px;

    margin: 0 0 20px;

    position: relative;
}

.footer-box h3::after {
    content: "";

    display: block;

    width: 35px;
    height: 2px;

    background: #1683ff;

    margin-top: 8px;
}

.footer-box a {
    color: #aaa;

    text-decoration: none;

    font-size: 13px;

    margin-bottom: 12px;

    transition: 0.3s;
}

.footer-box a:hover {
    color: #28a9ff;

    padding-left: 4px;
}

.footer-contact p {
    color: #aaa;

    font-size: 13px;

    line-height: 1.7;

    margin: 0 0 12px;
}


/* =========================================================
   FOOTER NEWSLETTER
========================================================= */

.footer-newsletter {
    width: calc(100% - 90px);

    margin: 0 45px;

    padding: 28px 0;

    border-top: 1px solid #2a2a2a;

    border-bottom: 1px solid #2a2a2a;

    box-sizing: border-box;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.newsletter-text {
    min-width: 0;
}

.newsletter-text h3 {
    margin: 0 0 6px;

    color: white;

    font-size: 19px;
}

.newsletter-text p {
    margin: 0;

    color: #888;

    font-size: 13px;
}

.newsletter-form {
    display: flex;

    width: 420px;

    max-width: 100%;
}

.newsletter-form input {
    flex: 1;

    min-width: 0;

    height: 42px;

    border: 1px solid #333;

    border-right: none;

    outline: none;

    padding: 0 15px;

    background: #1b1b1b;

    color: white;

    border-radius: 6px 0 0 6px;

    box-sizing: border-box;
}

.newsletter-form input::placeholder {
    color: #777;
}

.newsletter-form button {
    height: 42px;

    border: none;

    padding: 0 20px;

    background: #1683ff;

    color: white;

    font-weight: bold;

    cursor: pointer;

    border-radius: 0 6px 6px 0;

    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #006fe6;
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    width: 100%;

    padding: 20px 45px;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.footer-bottom p {
    margin: 0;

    color: #777;

    font-size: 12px;
}

.footer-bottom-links {
    display: flex;

    align-items: center;

    gap: 20px;
}

.footer-bottom-links a {
    color: #777;

    text-decoration: none;

    font-size: 12px;

    transition: 0.3s;
}

.footer-bottom-links a:hover {
    color: #28a9ff;
}


/* =========================================================
   COMMON RESPONSIVE - 1200px
========================================================= */

@media (max-width: 1200px) {

    .products,
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-container {
        grid-template-columns:
            1.5fr
            1fr
            1fr
            1fr
            1.3fr;

        gap: 20px;

        padding-left: 25px;
        padding-right: 25px;
    }

    .footer-newsletter {
        width: calc(100% - 50px);

        margin-left: 25px;
        margin-right: 25px;
    }

    .footer-bottom {
        padding-left: 25px;
        padding-right: 25px;
    }
}


/* =========================================================
   COMMON RESPONSIVE - 1000px
========================================================= */

@media (max-width: 1000px) {

    .footer-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: span 3;
    }
}


/* =========================================================
   COMMON RESPONSIVE - 700px
========================================================= */

@media (max-width: 700px) {

    .products,
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 15px;
    }

    .product-image {
        height: 230px;
    }

    .product-info {
        padding: 12px;
    }

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

    .footer-container {
        grid-template-columns: 1fr;

        padding: 50px 25px 35px;

        gap: 35px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-newsletter {
        width: calc(100% - 50px);

        margin-left: 25px;
        margin-right: 25px;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

    .newsletter-form {
        width: 100%;
    }

    .footer-bottom {
        padding: 20px 25px;

        flex-direction: column;

        text-align: center;
    }
}


/* =========================================================
   COMMON RESPONSIVE - 450px
========================================================= */

@media (max-width: 450px) {

    .products,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 300px;
    }

    .newsletter-form {
        flex-direction: column;

        gap: 10px;
    }

    .newsletter-form input {
        width: 100%;

        border-right: 1px solid #333;

        border-radius: 6px;
    }

    .newsletter-form button {
        width: 100%;

        border-radius: 6px;
    }
}


/* =========================================================
   HERO
========================================================= */

.hero {
    width: 100%;
    height: 500px;

    position: relative;

    overflow: hidden;

    color: white;
}

.hero-slider {
    width: 100%;
    height: 100%;

    position: relative;

    overflow: hidden;
}

.hero-slide {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;

    padding-left: 90px;

    box-sizing: border-box;

    transform: translateX(100%);

    transition: transform 0.8s ease-in-out;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-slide img {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    z-index: 0;
}


/* =========================================================
   ACTIVE SLIDE
========================================================= */

.hero-slide.active {
    transform: translateX(0);
}

.hero-slide.previous {
    transform: translateX(-100%);
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
    max-width: 600px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   SHOP BUTTON
========================================================= */

.shop-btn {
    display: inline-block;

    padding: 13px 28px;

    background: #28a9ff;

    color: white;

    text-decoration: none;

    border-radius: 5px;

    font-size: 15px;

    font-weight: bold;

    transition: 0.3s ease;
}

.shop-btn:hover {
    background: #1683ff;

    transform: translateY(-2px);
}