/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

@font-face {
    font-family: 'Avenir Next LT Pro';
    src: url('../font/AvenirNextLTPro-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next LT Pro';
    src: url('../font/AvenirNextLTPro-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next LT Pro';
    src: url('../font/AvenirNextLTPro-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Trajan Pro Bold';
    src: url('../font/TrajanPro-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Trajan Pro';
    src: url('../font/TrajanPro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #efa91e;
    --primary-dark: #d69517;
    --bg-dark: #0a3734;
    --text-dark: #333;
    --text-light: #fff;
    --border-color: #e5e5e5;
    --price-color: #eb0505;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Top */
.header-top {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top .welcome-text {
    font-weight: 700;
    text-transform: uppercase;
}

.social-icons a {
    margin-left: 15px;
    color: var(--text-light);
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Main Header */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo img {
    height: 70px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bg-dark);
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon-container {
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.cart-total {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.cart-total .price {
    color: var(--price-color);
}

.cart-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.cart-btn .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--price-color);
    color: white;
    font-size: 10px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Section */
.hero {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0;
    background-image: url(../images/banner.png);
    background-size: cover;
}

.hero .container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--text-light);
    color: var(--text-dark);
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #ddd;
}

.hero-images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hero-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.hero-images img:nth-child(2) {
    height: 300px;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 25px;
    font-weight: 700;
    margin: 40px 0 30px;
    text-transform: uppercase;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    border: 1px solid transparent;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.3s, border 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    box-shadow: 0 4px 15px rgb(142, 194, 255);
    border: 1px solid var(--border-color);
}

.product-card>a {
    display: block;
    width: 100%;
    height: 220px;
    margin-bottom: 15px;
}

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

.product-card h3 {
    font-size: 15px;
    color: var(--bg-dark);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 22px;
    height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .price {
    color: var(--price-color);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.btn-add-cart {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 99px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-add-cart:hover {
    background: var(--primary-color);
    color: white;
}

/* Product Detail Page */
.product-detail-wrapper {
    display: flex;
    gap: 50px;
    padding: 50px 0;
}

.product-image {
    flex: 1;
}

.product-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
}

.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.product-info .price {
    font-size: 24px;
    color: var(--price-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.product-info p {
    margin-bottom: 30px;
    color: #666;
}

/* Cart & Checkout Pages */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.cart-table th {
    text-transform: uppercase;
    background: #f9f9f9;
}

.cart-item-img {
    width: 60px;
    vertical-align: middle;
    margin-right: 15px;
}

.cart-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    float: right;
}

.cart-summary h3 {
    margin-bottom: 20px;
}

.cart-summary .total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
}

.btn-checkout {
    background: var(--bg-dark);
    color: white;
    width: 100%;
    padding: 10px;
    text-align: center;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

/* Checkout Form */
.checkout-wrapper {
    display: flex;
    gap: 40px;
    padding: 40px 0;
}

.checkout-form {
    flex: 2;
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.checkout-order {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.payment-methods {
    margin: 20px 0;
}

.payment-methods label {
    display: block;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #f1f1f1;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Toast Notification */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: #fff;
    color: var(--bg-dark);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #4caf50;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast i {
    color: #4caf50;
    font-size: 1.2rem;
}