/* Global Typography and Font Styles */

/* Base font settings */
:root {
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Raleway', sans-serif;
    --font-base-size: 100%;
    --font-weight-normal: 300;
    --font-weight-medium: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-base: 2em;
    --letter-spacing-base: 1px;

    /* Color palette */
    --text-primary: #333;
    --text-secondary: #777777;
    --text-light: #999;
    --heading-color: #333;
    --link-color: #03cce6;
    --link-hover-color: #02a7b3;
}

/* Reset and base styles */
html,
body {
    font-family: var(--font-primary);
    font-size: var(--font-base-size);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    letter-spacing: var(--letter-spacing-base);
    color: var(--text-primary);
    background: #fff;
    margin: 0;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    color: var(--heading-color);
    margin: 0;
    font-weight: 600;
}

h1 {
    font-size: 2em;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.37);
}

h2 {
    font-size: 1.5em;
    font-weight: 600;
}

h3 {
    font-size: 1.17em;
    font-weight: 600;
}

h4 {
    font-size: 1.12em;
    font-weight: 600;
}

h5 {
    font-size: 0.83em;
    font-weight: 600;
}

h6 {
    font-size: 0.75em;
    font-weight: 600;
}

/* Paragraphs */
p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: var(--line-height-base);
    letter-spacing: var(--letter-spacing-base);
    font-weight: 300;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -o-transition: 0.5s all;
    -ms-transition: 0.5s all;
}

a:hover,
a:focus {
    color: var(--link-hover-color);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* Lists */
ul,
ol {
    margin: 0;
    padding: 0;
}

ul li,
ol li {
    list-style: none;
}

/* Buttons */
.btn {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-base);
    text-transform: uppercase;
}

.btn-addcart {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    padding: 5px 0px;
    text-align: center;
    font-size: 16px;
    width: 100%;
    border: 0;
    transition: 0.3s ease;
    color: #000;
    background-color: #f9bf37;
    margin-bottom: 20px;
}

.btn-buynow {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    padding: 5px 0px;
    text-align: center;
    font-size: 16px;
    width: 100%;
    border: 0;
    transition: 0.3s ease;
    background-color: #9C1214;
    color: #fff;
    margin-bottom: 20px;
}

.right-tab-header {
    font-family: var(--font-secondary);
    background: #cacaca;
    text-transform: uppercase;
    padding: 5px 0px;
    border-left: 4px solid #0d2e4d;
    text-align: center;
    color: #000;
    font-size: 16px;
    font-weight: 600;
}

/* Forms */
input,
textarea,
select {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-primary);
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -o-transition: 0.5s all;
    -ms-transition: 0.5s all;
}

input[type="button"],
input[type="submit"],
input[type="text"],
input[type="email"],
input[type="search"] {
    font-family: var(--font-primary);
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -o-transition: 0.5s all;
    -ms-transition: 0.5s all;
}

.form-control {
    font-weight: var(--font-weight-normal);
}

label {
    margin: 0;
}

/* Utility classes for text styling */
.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-light {
    color: var(--text-light);
}

.font-primary {
    font-family: var(--font-primary);
}

.font-secondary {
    font-family: var(--font-secondary);
}

.font-weight-normal {
    font-weight: var(--font-weight-normal);
}

.font-weight-medium {
    font-weight: var(--font-weight-medium);
}

.font-weight-semibold {
    font-weight: var(--font-weight-semibold);
}

.font-weight-bold {
    font-weight: var(--font-weight-bold);
}

.text-small {
    font-size: 0.875rem;
}

.text-large {
    font-size: 1.125rem;
}

.line-height-tight {
    line-height: 1.4;
}

.line-height-loose {
    line-height: 1.8;
}

.letter-spacing-wide {
    letter-spacing: 1.5px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.uppercase {
    text-transform: uppercase;
}

.capitalize {
    text-transform: capitalize;
}

.lowercase {
    text-transform: lowercase;
}

/* Spacing utilities */
.margin-bottom-40 {
    margin-bottom: 40px;
}

.margin-top-20 {
    margin-top: 20px;
}

.padding-20 {
    padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    :root {
        --font-base-size: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    :root {
        --font-base-size: 14px;
    }
}